How to keep RMS after installing a new version?
Asked Answered
S

5

5

I have an j2me application installed on a Nokia S40. Some configuration data is stored in the RMS. Is it possible to overwrite the installed app with a new version? How to keep RMS in the new version?

If it is possible can it be set as a default operation when upgrading to avoid the user accidentally delete the data?

Sarto answered 5/6, 2009 at 19:33 Comment(0)
S
3

When installing a new version from the browser the application keeps the RMS and removes the old version from the device.

When installing from bluetooth the old version isn't removed and the new version doesn't get the old RMS.

Some Nokia S60 devices asks if the user wants to keep the RMS. But for S40 that is how it works.

Sarto answered 31/7, 2009 at 18:46 Comment(0)
S
4

If your phone automatically deletes the RMS database without asking the user, it's a huge bug that goes against the MIDP specifications.

I assume you are using a retail phone, not a prototype.

It's always worth checking if the firmware can be upgraded with nokia PC tool.

If the upgrade process asks the user whether to delete old RMS data, there is probably little you can do to prevent the question being asked.

It's usually good practice to synchronize configuration data on a remote server and re-download it when it becomes unavailable.

Stonechat answered 6/6, 2009 at 13:59 Comment(0)
S
3

When installing a new version from the browser the application keeps the RMS and removes the old version from the device.

When installing from bluetooth the old version isn't removed and the new version doesn't get the old RMS.

Some Nokia S60 devices asks if the user wants to keep the RMS. But for S40 that is how it works.

Sarto answered 31/7, 2009 at 18:46 Comment(0)
D
0

Basically, you don't have any control over the installation and update process. The phone environment takes care. Some phones ask the user whether to save the RMS data or not, but that cannot be controlled by the developer or the user

Damiondamita answered 8/6, 2009 at 6:25 Comment(0)
L
0

As was said you can't control the installation procedure, the OS asks the user if it wants to keep the previous data or erase it.

However you can include a version number in the application RMS data and when you load the application you can detect if it was from a previous version and decide to update it or reset to the new default.

Leninism answered 15/6, 2009 at 16:20 Comment(0)
E
0

Specifically on Nokia S40, the native installer asks the user during the upgrade whether he/she would like to keep the application data. If the user decides to clear the data, your MIDlet's RMS data (and also the MIDlet's private folder on the file system) will be deleted.

You might find ways around this on specific devices, especially if your MIDlet is signed by manufacturer or operator, but there's really no foolproof and portable way to keep data over upgrades. You should consider saving the data on a server.

Evenhanded answered 13/7, 2009 at 18:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.