SharedPreferences
In fact, there is another small problem (apart from the accelerometer orientation, I'm talking about in another thread): SharedPreferences.
SharedPreferences lies in Android land AFAIK the most common way to save the application's preferences. The Playbook, they work as long as the Android Runtime is running; Once we close, all SharedPreferences disappeared, too.
More precisely:
-launch the Android app for the first time
-close. It will create a SharedPreferences object (say, to save its State)
-you will see the Runtime Android open with all your Apps Anrdoid inside.
-reopen the app. Correctly, it will find the SharedPreferences object and read it. So far, everything is good!
-now, close the application
-close the whole Android Runtime
-reopen the app on home screen
-l'app will find it's SharedPreferences. Looks like they were lost with the Runtime
The above should with my 2.0.0.4869?
Hello Utumno,
Thanks repoting this. I'm unable to reproduce this problem on my end. After the closure of the execution and the unit restarts, SharedPreferences objects are still being held.
Please submit a bug via the following URL report, it would allow us to pursue the issue in dispute.
Developer of blackBerry Issue Tracker - create problem
https://www.BlackBerry.com/JIRA/secure/CreateIssue! default.jspa
Tags: BlackBerry Developers
Similar Questions
-
Anything similar to Android s SharedPreferences in the NDK?
See http://developer.android.com/guide/topics/data/data-storage.html#pref
Android offers a quick and nice way to persist the data simple. What is the recommended way to do for example in the NDK - what I want to show a help screen introduction the first time the user runs the application, but not any other time.
If you use Qt, there is class QSettings.
-
Level - data retention applications
During development, I noticed, that each app deployment is seen by the system as an installation fresh app (as opposed to the deployment on Android itself, where the properties of the app are stored).
We are at the point where we want to release the first update of our app, and the app will be substantially different from the first version. But we want to keep the application settings, such as preferences and user account information. During development, this information has been lost with each new deployment.
How is - that it is run in production? Our app will lose all of its data on the upgrade?
Update BlackBerry world can be tested?
Kind regards
ROK Ruzic
Hey Rok,.
In my tests, it seems that the upgrade of the application retains the settings/properties, at least it does with SharedPreferences. Test yourself against the latest 10.2.1?
Application upgrade via BlackBerry World will preserve the previous settings/properties as well. You can try setting up a Sandbox account in the portal provider to test the upgrade of the application.
More info about it here: https://developer.blackberry.com/blackberryworld/testing_apps_with_a_sandbox_user_account.html
Maybe you are looking for
-
The best flexibility might always have the ability to add individual addresses from a group list to any email, so the list can then be cut. Or only the address list in the list group selected as a list of checkboxes (all checked by default) if the us
-
IPHONE 6 S IMPLEMENTATION QUESTIONS
The view bar on the bottom of my IPhone 6s disappeared. How do restore you it?
-
Deleting Extension Safari?
How can I remove the extension safari Ghostery?
-
HP laserjet 6 p: can not find the driver for windows 10
I installed 10 windows and now my printer is not working. It doesn't seem to be a new driver out there.
-
Cannot read cd of either.