Blackberry app version update deletes persistent store object on some devices -


i have blackberry app stores object in persistent store. after updating app, supposed read existing value persistent store, if any, , continue use value. works on devices, not work on others. tested on several devices running os version 7, of work expected. on device using version 5 , using version 6, object no longer readable in persistent store.

this case if don't change app other version number. same exact class/object being saved & loaded persistent store, , same object id used access it.

the process i'm following reproduce is:

  1. completely delete app & it's data using command line.
  2. load version of app, downloading .jad file browser, verify stores data in persistent store.
  3. while app running in background, load later version via browser download of .jad file.
  4. after downloading later version, system asks if want replace previous version, , confirm do.
  5. the system loads new version, , prompts must reboot change take effect. select "reboot".
  6. device reboots. later version running cannot read object persistent store.

a device on can consistently reproduce issue blackberry 9800 (torch) running 6.0 bundle 2647.

as mentioned above happens on some, not all, devices, makes me think other coding bug may going on here.

anyone have ideas issue or how debug further?

peculiar case.

are sure persistent storage being committed? similar occurs me when data has been stored in storage not committed. if case, , load older version, store data , reboot device, data not stored in persistence.

you mentioned app still running in background when load later version. may want check whether commit() gets executed or not.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -