Delete PersistentObject of the store when the application is uninstalled

Hello

I expect that on request, uninstall the PersistentObjects used by the application would be removed, but this does not happen.

How can I achieve it

Thanks yo

If you create a custom class that is persistable your persistent data will be deleted when the application is uninstalled.  If you use a class set of BlackBerry APIs, such as String and store in the persistent store, it is not deleted when the application is uninstalled.  This is explained here:

Manage the data recorded during the withdrawal of an application

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

Tags: BlackBerry Developers

Similar Questions

  • How to detect if the application is uninstalled!

    Hi guys!

    I develop applications for BlackBerry devices, and I wonder if it is possible to detect the moment when the application is uninstalled from the user.

    I appreciate your help.

    greetings.

    Take a look at CodeModuleListener and related classes.

    Good luck!

  • I need to specify that you can or cannot remove files when an application is uninstalled.

    Here is the conversation last Friday, I had with my product manager:

    PM: We must be able to clear completely all files when a user uninstalls our application, so we can ensure that we are not starting from files on their devices.

    Me: OK, it sounds although we install only a single file, a SQLite file in fact. I would like to create a prototype.

    PM: excellent!

    Me: OK, give it a sense... Let's see, I can use the CodeModuleListener Interface and moduleDeletionsPending. Good deal, I can go home on time tonight.

    [Wait a minute, that doesn't work.]

    [Debug, registration.]

    Hmmm...

    [I will check the support community. Oh, ok, I found the following.]

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-delete-files-during-uninstallation/m-...

    WHAT?

    [I can't uninstall one * beep * file when a user uninstalls the app?]

    [I need to create a secondary application that uses the CodeModuleListener and moduleDeletionsPending to uninstall the SQLite file used by the primary application!]

    This isn't?

    PM: The prototype will uninstall go prototype?

    ME: Uh, good... I will do tomorrow morning Tuesday for sure.

    PM: OK, have a good evening.

    ME: Yes, you too.

    ME: [not go home on time and be completely stunned by the fact that a file cannot be uninstalled when an application is deleted.]

    So my question is, before I say my product manager that I can not uninstall a single file... a small file when a user uninstalls the application, is ALL way to have an uninstalled file when a user uninstalls the application without having to use a secondary application?

    If this isn't the case, it's incredibly stupid!

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800647/How_To _...

    BlackBerry file (FileConnection) storage

    The data stored by applications using a FileConnection are not removed when the application is uninstalled.

    * beep * it! * beep * it! * beep * it!

  • Webutil - deleting files from the application server

    Is there a Webutil function that will erase the files from the application server?

    I tried Webutil_file. Delete_File but it doesn't seem to work. Not quite sure if it's for customer files?

    Thank you
    Paul

    Hello
    Why don't you use HOST or WEBUTIL_HOST command to delete files of APPLICATION SERVER for example...

    HOST('DEL FILEPATH\FILENAME.EXT');
    or
    HOST('CMD /C DEL FILEPATH\FILENAME.EXT');
    
    or 
    
    WEBUTIL_HOST('DEL FILEPATH\FILENAME.EXT');
    or
    WEBUTIL_HOST('CMD /C DEL FILEPATH\FILENAME.EXT');
    

    Function Webutil_File works on the client side. See the documentation for webutil.
    http://www.Oracle.com/webapps/online-help/forms/10G/State?navSetId=_&Navid=3&vtTopicFile=web_util/functions.htm&vtTopicId=

    -Clément

    Published by: Graham on April 20, 2010 20:07
    Link added

  • Can I delete and reinstall the application in Xcode?

    I have an Admin and the user's personal account.  My problem is I have the app in Xcode into suspended mode in Launchpad to my user account and cannot delete it.

    I logged into the Admin account and successfully updated and installed theXcode app.

    How to clear the Paused version deleted from my user account?

    PSD,

    Paste this text ~/Library in Menu Finder > go > go to folder... window and select 'go '. This will open the folder library users.

    Then, open the Preferences folder in the library folder and move the file com.apple.dock.plist on the desktop.

    Your Dock will restart and find the default appearance. You will have to perhaps save outgoing/incoming or restart.

  • Uncaught exception handler application when you install the application via the Desktop Manager

    Hello

    I sometimes have a problem when I install my application on the new phones (mainly with OS6 and OS7) using the Desktop Manager. When installing the application net_rim_bb_trust_application_manager raises an uncaught exception as if had been stalled and its eventqueue was too long. The application itself is installed and works perfectly after a battery pull.

    The question is a bit like the problem described in this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/Autostart-on-installation/m-p/471949#M94686

    The problem is that the solution mentioned here does not solve my problem. My request to have multiple entry points and one of them is an autostart entry point but she must leave the application, unless a parameter in the application autostart enabled (which is not the default). I don't see how this should pose problems for the application manager.

    It is also worth mentioning that this happends only when the application is installed the first time on a new device or a new version of the application that is signed with a different code signing key is installed on the device. The problem will not occur if the application is uninstalled and then installed again. This makes me think that it's something with the permissions to a...?

    Someone at - it had the same problem and solved it?

    Here are the 'new' version of this same article:

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

    Not sure this is the same problem however, because the user described the problem as being present during the installation, date at which the device is fully functional.

    I agree that it is likely to be a permissions issue.  I saw on some devices that the app will throw a ControlledAcessException on first installation, associated with the PersistentStore.  My suspicion is that there is a kind of race condition between the code that runs the auto-start and the code that is supply completely, for the first time the auto start run on installation, the device is not ready for it.  I thought a few seconds delay automatic start of treatment of coding, but never tested it.

  • How to destroy an object persistent on the removal of the application

    Is it possible to make an app that retrieves a persistent object and start when the application is removed by the user, the application also removes the object persistent (using PersistentStore.destroyPersistentObject (long key))

    If you use a custom object (create persistable) it is deleted automatically to the application.

    There is no way otherwise.

  • An application can uninstall the itself?

    He has had several discussions on a request for deletion of another by using CodeModuleManager. I am interested in this as a way to deal with that request the removal of the usual way does not clean up the file system: If the application to uninstall, it has the chance to erase his data. Are there special issues involved in a request to remove its own module of code, especially if it is big enough for brother cod files need?

    CodeModuleManager API allows the app delete itself very well. For example, the code below removes the application call (tried on 9000 "BOLD"), if the application consists of a module (with or without siblings module):

    CodeModuleManager.deleteModuleEx(
      ApplicationDescriptor.currentApplicationDescriptor().getModuleHandle(),
      true);
    CodeModuleManager.promptForResetIfRequired();
    
  • Remove the persistent about uninstalling storage

    How can I remove the persistent storage when the application is uninstalled...

    Because when I install the application with the same name of the database I want a new copy of storage perssistent

    Thank you...

    If you use Vector, instances of the string class to store data in the store persistent it will remain after application is uninstalled.

    But if you store instances of your classes like:

    class MyStorageBlock implements {Persistable

    private String myData;

    ...........

    }

    all of these objects will be deleted when your application is uninstalled.

    This works for me and for my clients.

  • the App store shows 14 applications need to be updated, but when I try to update it shows no updates

    icon App store from my iPhone shows there are 14 necessary updates, but when I click the icon, it shows that all apps are up to date.

    Update you on your computer with iTunes?  The is a bug in the iOS.  If you update the applications on the computer, then sync, phone apps are updated, but the Red count on the iPhone App Store is not reset.  Wait for a new update of the app, and then update on the phone first.  To delete the account of the update.

  • I download the ios9.2 but I can't download the application on the Apple App Store. Some people say to delete the old App Store, but cannot download the new App Store. Please help me. Thank you.

    I have download the iis 9.2 application, but I can't download the application on Apple App Store.Some people say need removes the old App Store and download the new AppStore.I can not download the new app store. Please help me. Thank you.

    Can't download what app? What happens when you try? The App Store is part of the operating system. You can not download separately.

  • How not to display the item to delete when an application icon is selected

    Menu items should be indicated when the application icon is selected and you click on the menu button. The delete element will be shown for some application and application is deleted after selecting the element removed. But for some applications, delete it the article does not appear when the application icon is selected and you click on the menu button. We want to protect our application which cannot be deleted when our application icon is selected and you click on the menu button.

    Who knows how do not show don't delete the article when an application icon is selected?

    Some applications that are part of the core OS can not be removed in this way (for example, help).  This applies however to Facebook.  He could have been driven out of your BES.

    There is no way to remove the delete option for a third-party application other than marking as required and pushing the BES.

  • Just installed icloud and itunes. In the Itunes store preferences when I applications boxes music and books and press ok, computer get autherise error message how do I

    Just installed icloud and itunes. In the Itunes store preferences when I applications boxes music and books and press ok, computer get autherise error message how do I

    If you open itunes,

    At the top right, you will see if your signature at.

    Once you sign up on the left,

    Click on Store and then let the House load,

    Yet once, click Bank to authorize this computer is listed.

    Enter the same apple ID and password when prompted.

  • I am facing a problem when working in the Muse... The problem is that I can't remove my package page, when I try to delete it showing an error and the application terminates. I'm working on an emergency project which, I have to present tomorrow I hope y

    I am facing a problem when working in the Muse... The problem is that I can't remove my package page, when I try to delete it showing an error and the application terminates. I'm working on an emergency project which, I have to present tomorrow I hope you find a solution for the same. Help with the help of Adobe Muse CC

    Liston Hi,

    Steps to follow:

    1. Try to make a new complete site structure in MUSE and try to add a few pages and tries to remove it, just to check its not having not problem
    2. If the problem persists even, check if your site is stored on the external hard drive. Note: site should be registered on internal hard drives.
    3. Try to revive the MUSE, if the problem remains the same, we will refresh the preferences of MUSE.

    Hope it will work.

    Thank you

    Prabhakar Kumar

  • How to upgrade to the icon of the application screen (not App Store icons)?

    Recently, I built two apps with Indesign, DPS and Viewer Builder - a single folio and a multi-folio.
    In both cases, I want to do an update on the iPad screen icon I provided initially by spectator Builder, and I wonder how simple this process?

    Can I do this without having to re - build the folios?

    Is there a difference in both cases?

    The sheets are working well, so I don't want to make "too much" work. In other words, accidentally delete or destroy anything.

    I had changed my icon designs when I added apps in iTunes Connect, so the icons in the App Store are correct.

    I agree that the correct display on the iPad screen icons during the installation of the applications, but they change the old or false those who once installation is complete.

    You can do this without rebuilding the folios.

    Generator Viewer Viewer select on change. Click on the following button unless you just start screen icon, change icons with new ones and build the new Viewer.

    Test Viewer on Ipad before submitting to Apple for approval.

    If your application is already approved and then re-submit to Apple for approval again under a new version of the app.

Maybe you are looking for

  • How can I restore my data with the recovery firefox key?

    So, my laptop was recently reimagee. I was able to get a recovery key Firefox before everything has been removed. When I downloaded Firefox on the recreated machine, asked me to connect. After several resets the password, I have been in. None of my d

  • Two issues of music organization associated with iCloud

    I recently decided to clean up a bit of my iTunes library and have met with a number of things.  I guess pretty basic, but I was not able to find the right keywords to find them in search of these forums, so apologies in advance. First of all, I chos

  • How to fix an unknown error (0xE800000E)?

    Hi there I'm trying to install an application with a .ipa file. It load on the phone, but then gives me this error and then says waiting... with the loading icon. Any ideas on how to solve this problem?

  • NMH400 - hard drive compatibility

    I have read the information in the FAQ. I try a chat with Linksys, but the answer was... telephone call, I could not help but this kind of question... So, simple question: Could I use WD15EADS or WD15EVDS (1.5 to)? In the approved list, we WD 1.0 TB

  • Can I reuse my Norton Internet Security software after reset of your laptop?

    HP Pavilion dv7 Notebook PC Serial number: [personal information] Product number: LQ856PA #ACJ Windows 7 Home Premium 64-Bit Center of the action: "Windows found no antivirus software on this computer" and "Windows Firewall is disabled or badly adjus