开发者

Sync BlackBerry persistent data with desktop to survive device transfers and OS upgrades

开发者 https://www.devze.com 2022-12-11 01:36 出处:网络
If a BlackBerry application stores data in the persistent store, that data typically gets erased when the user performs a data transfer to a new device (using RIM\'s desktop software), or when the use

If a BlackBerry application stores data in the persistent store, that data typically gets erased when the user performs a data transfer to a new device (using RIM's desktop software), or when the user performs an OS upgrade on t开发者_C百科he device.

I believe the RIM api does provide facilities for making an application adhere to whatever rules it needs to in order for its persisted data to be backed up and restored properly during upgrades and transfers. But the available documentation doesn't explore this very well.

What is the proper way to make your BlackBerry app behave properly during data backups and transfers?

RIM OS 4.1+


To do it the way you mentioned you could look at this and use the synchronization API to include it in a backup.

OR

Save it to a flat file located on the SD card if the user has it, or invoke an email and allow the user to send that flat file to himself (you can encode it if it has sensitive information. maybe... Base64 and encrypted). Write a class that allows a user to import "settings" from a file. Use the native file picker if its saved on SD card or if its in an email, pre-populate that email with the location the user should save the attachment.

0

精彩评论

暂无评论...
验证码 换一张
取 消