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

Re: Delete Persistent Data when the app is uninstalled

Hi Friends,

 

I have the same issue. I delete the app & then reinstall from the command prompt then it show the previous data.

 

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 data should be deleted & when i reinstall the app then i dont face the old data.

 

Thanks In Advance