Data management.......................................................................................................................................................................... 45
Access to memory........................................................................................................................................................................... 45
Persistent data storage.................................................................................................................................................................. 46
Create a persistent data store............................................................................................................................................... 46
Store persistent data.............................................................................................................................................................. 46
Retrieve persistent data......................................................................................................................................................... 47
Remove persistent data......................................................................................................................................................... 47
MIDP record storage...................................................................................................................................................................... 48
Create an MIDP record store................................................................................................................................................ 48
Add a record to a record store.............................................................................................................................................. 48
Retrieve a record from a record store.................................................................................................................................. 48
Retrieve all records from a record store............................................................................................................................... 48
Collections....................................................................................................................................................................................... 49
Retrieve a collection from persistent storage..................................................................................................................... 49
Create a collection listener to notify the system when a collection changes................................................................. 50
Remove a collection listener that notifies the system when a collection changes........................................................ 50
Notify the system when a collection changes.................................................................................................................... 51
Runtime storage.............................................................................................................................................................................. 51
Retrieve the runtime store..................................................................................................................................................... 51
Add an object in the runtime store...................................................................................................................................... 52
Replace an object in the runtime store................................................................................................................................ 52
Retrieve a registered runtime object.................................................................................................................................... 52
Retrieve an unregistered runtime object............................................................................................................................. 53
3 Creating connections.................................................................................................................................................................. 54
Network gateways.......................................................................................................................................................................... 54
Using the BlackBerry Enterprise Server as an intranet gateway...................................................................................... 54
Using the wireless service provider's Internet gateway.................................................................................................... 54
Retrieve the wireless network name.................................................................................................................................... 54
Connections..................................................................................................................................................................................... 55
Use HTTP authentication...................................................................................................................................................... 55
Use an HTTPS connection..................................................................................................................................................... 56
Use a socket connection........................................................................................................................................................ 57
Use a datagram connection.................................................................................................................................................. 58
Use a USB or serial port connection.................................................................................................................................... 60