Blackberry - application settings save/load

后端 未结 2 386
我在风中等你
我在风中等你 2020-12-09 23:46

I know two ways to save/load application settings:

  • use PersistentStore
  • use filesystem (store, since SDCard is optional)

I\'d

相关标签:
2条回答
  • 2020-12-10 00:35

    3rd option: Use the RMS for simple app settings.

    Although your suggested persistent store sounds nice, it is not compatible with any other java phone, so when you have to port your app you'll have to recreate this part

    I read somewhere that creating files on the filesystem itself should only be done in case of pictures or video, so basically content which the user can look at at another way as well.

    0 讨论(0)
  • 2020-12-10 00:37

    We use PersistentStore and I can confirm that the data does stick around even after uninstalling and reinstalling the app.

    UPDATE: from what I understand, if you persist a non-native object (i.e. you create a subclass of Hashtable and store it) then all the app's persisted data WILL be erased when you uninstall your app, since the persisted class no longer has meaning.

    0 讨论(0)
提交回复
热议问题