Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
vnaren
Posts: 3
Registered: ‎06-23-2010
My Device: 9700
My Carrier: GSM
Accepted Solution

Unable to delete the persistence data

Hi Friends,

 

I have the a issue that when I delete the app & then reinstall app then it shows me the previous data from persistance store. I am following code.

 

public static class MyIntHashtable extends IntHashtable implements Persistable {
}

 

 public static IntHashtableStore getInstance(long UID) {
      

        PersistentObject  po = PersistentStore.getPersistentObject(UID);    
        IntHashtable store = (IntHashtable) po.getContents();


        if (store == null) {
            store = new MyIntHashtable();
            po.setContents(store);
            po.commit();
        }
        return store;
 }

 

 

Can some tell me how can I resolve it. When i delete app, the data should be deleted & when i reinstall the app then i dont want to face the old data.

 

Thanks In Advance

Please use plain text.
Developer
hemant_sain
Posts: 179
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: Unable to delete the persistence data

Please use plain text.
Developer
hemant_sain
Posts: 179
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: Unable to delete the persistence data

Please use plain text.