Persistent data and uninstall an app problem.

Hello

I'm checking the storage of persistent data with a very silly application, but maybe I'm do sth wrong as that it does not work as I supposed it should.

My application only checks if there is some content in the store persistent and if not, it creates. I want to check that when the application is uninstalled, these persistent info will be deleted, but as I just test, it is not.

This is my code:

 public TestP(){
        String info = "nothing";
        synchronized(store) {
            String currentinfo = (String)store.getContents();
            if(currentinfo == null) {
                //we create it
                String contents = "something";
                store.setContents(contents);
                store.commit();
            } else {
                //we retrieve it
                info = currentinfo;
            }
        }

        MainScreen ms = new MainScreen();
        ms.add(new LabelField("Testing Persistance..."));
        ms.add(new LabelField(info));
        ms.add(new LabelField("That's all..."));

        pushScreen(ms);
    }

And that's how I create the store

'com.app.test.TestP' at long---> 0xcdbcc77c2e7ecf8cL
Bank private static PersistentObject = PersistentStore.getPersistentObject (0xcdbcc77c2e7ecf8cL);

The first time I run my application, the display will return to "nothing" and the text next time 'something '. It's ok, but when I uninstall my application, the first time also shows 'something', which according to me, that he should not be allowed.

I do something wrong?

How persistent store information can be removed on an uninstall of the application?

Concerning

Your persistent data are of type String, which is a common object of the rim.  It is not necessary for the BB to delete your data - another application can use it.

However, if you used one of your own classes - even if it comes extends the string and does nothing else - then it will be deleted when your Application is removed, because with your driveway application, there's nothing on the device which includes that Object.

Tags: BlackBerry Developers

Similar Questions

  • Folio for iPad 2 and 3 - multi app problem?

    We have just finished creating an exemplary application for the iPad, download the folio in PDF so that it is compatible on the iPad 2 and 3. However, despite having chosen PDF, interactive features such as buttons and scrollable text blurry on the iPad 3.

    So, we've created another interpretation specifically for the iPad 3 now.

    My question is, when we create the app, it will always be only one question or it comes to seeing multi there is now 2 refunds? Or what if refunds are for iPad and Android?

    Thank you.

    If you try to create a simple editing application, you have two choices to deal with this:

    (1) create a multi-resolution article.

    (2) publish a single store SD and HD editing application.

    See http://www.adobe.com/devnet/digitalpublishingsuite/articles/building-multi-rendition-artic les.html for instructions on how to make #1.

    Neil

  • Problem of persistent data object

    Dear Sir.

    Hello

    I am writing a module that implements the earpiece of the phone, simply

    and I would use persistent object to store information

    But I am facing the following problems:

    When I use the persistent objects, the Simulator to show that there is no instance of the application,

    as my program doesn't include any GUI,

    would my recognized program just as a Moudle and the persistent object should point the data store with an application?

    Thank you very much

    Please see the following for more information.

    http://supportforums.BlackBerry.com/T5/Java-development/persistent-data-and-uninstalling-an-app-issu...

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/handle-stored-data-when-removing-an-AP...

    http://supportforums.BlackBerry.com/T5/Java-development/persistent-data-and-uninstalling-an-app-issu...

  • If I install the iCloud drive on my laptop and remove this app from my iphone due to the lack of storage, to lose all the data that I saved in there?

    If I install icloud drive in my laptop where all my important data is saved and uninstall the app from my iphone icloud drive, my data is secure?

    A couple of things...

    -If you have an Apple laptop or desktop, with a software update system, so there is no way to 'install iCloud Drive' to this topic as it is already there as a function of iCloud.

    -remove the iCloud (app) drive icon on your iPhone will do nothing.

    -If your data is already in iCloud, so rest assured, it is already safe.

  • Finance App on windows 8, the tiles of the watchlist are not up-to-date ive uninstalled and reinstalled can anyone help

    Finance App on windows 8, the tiles of the watchlist are not up-to-date ive uninstalled and reinstalled can anyone help

    Hi Denise,

    I suggest you try to do a system restore to an earlier point of time before the problem occurred. Check the link and see if it helps:

    How to restore, refresh or reset your PC

    Let us know if it helps.

  • persistent app of the fragments-i-drive placed a persistent frag of cookie or app on my computer and after removing the disc it always opens whenever I start. Anyone know how to uninstall or delete it?

    fragments of persistent app-

    i drive placed a persistent frag of cookie or app on my computer and after removing the idrive with CleanMyMac3, it's always the opening whenever I start. Anyone know how to uninstall or delete it?

    Rid you MBP od CleanMyMac3.  It is not necessary and can damage your system.

    Try Malewarebytes Anti-Malware for Mac:

    https://www.Malwarebytes.org/Mac-download/

    Ciao.

  • Force the persistent data that is not retained on App upgrade

    Hello

    I'm developing a new version of an existing application. The earlier version of the data stored in the persistent store of the device. When a user installs the new version of the application, they get a prompt saying something like "the persistent data is stored on the device. You want to keep these data? ».

    If the user answers Yes, the application will continue to use the old data which has been made persistent by the initial version of the application. This isn't what I need to happen.

    If the user answers no, the app will wipe the old dat and rebuild the store persistent with my current data. It is the course of action I want to request each time.

    Since there is no way to guarantee that each user will select 'NO' to this prompt, is it possible to configure the new version so that the data is not retained automatically?

    What other options are there for dealing with this situation?

    Thank you

    The f

    If the application can access the old data, why not just remove them when the application runs? In order to distinguish, again, you can design new data to contain a signature value that is not present in the old data. (For example, you can set your local record store to have record 1 always contain version store data, in a format that is not likely to be present in earlier formats.)

    An upgrade does not (usually) follow the same procedure with regard to the persistent data as a sequence of uninstall/install. However, there are occasional messages here on updates apparently lose persisted data that was supposed to be preserved. I did not understand everything exactly what are the causes which, but it has not considered the norm.

    P.S. If you use RecordStore instead of Persistable, custom classes are not relevant. The record store is deleted when all the MIDlets in the MIDlet suite, who created the store folder is uninstalled.

  • I recently updated my iPhone to iOS 9.3 6s and now my data and wifi are in place. Now I can't open the apps and send messages with data and barely on the wifi. I've tried everything, and it still does not work.

    I updated my iPhone to iOS 9.3 6s today and now my data and wifi are in place. Whenever I try to open an app or send text messages with data it does not at all. And with wifi, it just works. I tried just like turn roaming off and off and other lte but nothing seems to work at all. Can someone please?

    I have this same problem too, it really gets me upset

  • How to uninstall and reinstall an app that I bought, but is no longer in the store?

    I bought the Publisher Adobe Photoshop elements 12 some time ago.  Now it does not start, it crashes every time.

    In the app store, there are many complaints that it happens also with Photoshop 13, in any case a Board of a user (Adobe and Apple seems not to be able to provide the solution even for version 13) says that a good idea is to uninstall the application and reinstall it again.

    Now the problem is: in my understanding, I can certainly uninstall an App disconnected from the launch pad (I think... I'm new to mac).

    But how can I reinstall, if it is no longer on the store?

    It appears, however, in my "purchased items.

    Thank you very much

    for any advice

    Concerning

    Claudio

    Put the application in the trash but not empty. Open the App Store, go to the shopping page where you should be able to re - download. Note that if the application will not work with the iOS version you are currently using, you won't be able to use it longer unless the developer upgrades it.

  • Why my 6s Iphone says that I used 44,59 GB of data and documents when I don't have? Recently updated to iOS 9.2.1 and having problems.

    I bought the new 6 s iPhone with 64 GB of storage in December. A few days ago I updated to iOS 9.2.1 and I got a notification the next day saying that my storage was almost full. I was shocked because I have not yet used half of the 64 GB and before I upgraded to the latest updated everything worked well. Also, on a side note, game Center does not work and when I try to open the app it's just a blank screen and when I go into settings, click on the play icon, it does not even open.

    Back to the problem of storage, I don't not even use a lot of my storage upward. Look at the photo for reference. This photo was taken after I updated.

    So I am very confused right now with my phone and I have only had it a month ago and it's already the case. It does not make sense to me to have only 4.84 GB free. I used 6,76 Go on applications, and I have 20 apps and I understand that, but whence this other 44 gb?

    Why do we say I used 44,59 GB of data and documents when I don't? Could be a problem due to the update to iOS 9.2.1?

    BradCalifornia15 wrote:

    So I am very confused right now with my phone and I have only had it a month ago and it's already the case. It does not make sense to me to have only 4.84 GB free. I used 6,76 Go on applications, and I have 20 apps and I understand that, but whence this other 44 gb?

    Why do we say I used 44,59 GB of data and documents when I don't? Could be a problem due to the update to iOS 9.2.1?

    Connect your phone to iTunes on your computer and see what the ability the bottom bar shows for storage. You can have one large amount of 'other' data which may indicate a corrupted sync or corrupted update. If you have backed up with iTunes before you update, try to restore the backup.

    Take a look at the Board to the alarm user.

    What is 'Other' and what I can do about it?

  • Try to uninstall some apps and it says unavailable uninstall Manager? Can someone help me with this please?

    Due to lack of space on my current computer, I'm in the Middle, or uninstalling some programs that I haven't used for a while. When I go to the CC Manager to uninstall programs a couple, it is said that uninstall unavailable. Y at - it a good way around cela or am I stuck with programs that I don't use too much space, I need?

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    or

    The Adobe Creative Cloud Cleaner tool allows to solve installation problems

  • How to remove documents and data in the iphone app podcast 6

    I know how to remove each podcast, but how do I remove "documents and data" in the application of podcast?  I have more than 4 GB of data and documents.

    I think I found a thread that is useful for you: https://origin-discussions-us.apple.com/thread/6822791?start=60 & tstart = 0

    Sonny3301 answer worked for me, «...» "(The steps are: 1) download the Battery Doctor app on your iPhone (it's the first one that appears in the search) (2) hit the"Junk"icon on the bottom and tap 'Clear Cache'." (3) repeat until your space becomes available. The people that I learned this technique of some other bulletin board said it took 10-15 tries; It took me + 30 attempts. The memory savings start small at first, then it starts to hit hundreds of MB at a time. It sounds crazy, I know, but I went to have less than 200 MB of free space for 3.6 GB. Great thing, it was my podcast app had only been hogging to 1 GB of data, so the app battery doctor found 2.6 Go elsewhere. Good luck to you all and you are welcome. »

  • How to get back my data for the health and the watch Apps once I've restored my phone?

    How to get back my data for the health and the watch Apps once I've restored my phone?

    From the backup, you're going to be restoration.

    If you back up to iTunes, make sure that it is an encrypted backup.

  • Satellite M100-JG2 HotKey and date and time problem

    Hi all

    I'm not very good with computers, and I've had some problems for a while now. My laptop is almost three years, I don't know why I'm writing this after so long but anyway. I think they are called "keys" or "launchkeys", hopeyfully, you know what I mean, but anyway they do no more work. They worked for a while, but they do not work now. I went into the control panel and went into the 'Toshiba' orders and tried to change what does each control, but it still does not work. No one knows how to fix?

    Also, another problem that I had since I first laptop is my date and time are screwed up. If I put my 15:30 time, it works perfectly, until around 16:15, that when he goes back to 15:30 and go all the way up to 16:15 and continues in this cycle until I manually change the time. I had a few friends (no professional) to look at, but can not understand. When I start my laptop I go to settings in the start screen, try to change it was from there, but it keeps going during the cycle. If I click on the time and click on the tab "internet time" and say "update now", it updates, and then only time will work normally, but only until I turn off my laptop. Once I turn it on then next turn, it passes through this new cycle of 45 minutes. If anyone has had this problem or knows how to fix?

    I'm not very good at explaining, but I hope you guys can help! I appreciate it really :) Show!

    > I think they are called "keys" or "launchkeys", hopeyfully, you know what I mean, but anyway they do no more work. They worked for a while, but they do not work now. I went into the control panel and went into the 'Toshiba' orders and tried to change what does each control, but it still does not work. No one knows how to fix?

    The Toshiba Satellite M100. M100-JG2 seems to be a Canadian series laptop. I recommend you to visit the driver Toshiba Canada page and to download and reinstall the tool called controls, Toshiba HotKey Utility, touch and launch.

    http://support.Toshiba.ca/support/download/ln_byModel.asp

    > Also, another problem that I had since I first laptop is my date and time are screwed up. If I put my 15:30 time, it works perfectly, until around 16:15, that when he goes back to 15:30 and go all the way up to 16:15 and continues in this cycle until I manually change the time. I had a few friends (no professional) to look at, but can not understand. When I start my laptop I go to settings in the start screen, try to change it was from there, but it keeps going during the cycle. If I click on the time and click on the tab "internet time" and say "update now", it updates, and then only time will work normally, but only until I turn off my laptop. Once I turn it on then next turn, it passes through this new cycle of 45 minutes. If anyone has had this problem or knows how to fix?

    I think that you have changed the date and time in the BIOS. Is this good?
    If not, change it and don t forget to save the changes.

    In Control Panel--> Date and time--> time tab Internet, please uncheck the auto sync with the internet time server.
    In the other, called tab time zone please choose the right time zone and activate the tick to the option called automatically adjust the clock for an advance of changes

    See you soon

  • data and text work fine, but I can't make or receive phone calls. How can I solve this problem?

    I can use my data and it works perfectly fine but the only problem is that I can't call someone or receive phone calls. I don't know what's the matter with him so I would if anyone can help e telling me how to fix it...

    You will need to contact your carrier and let them fix the problem with your account.

Maybe you are looking for