I use PersistentObject to store login and password to enter directly in the application
when I want to delete the values I use PersistentStore.destroyPersistentObject(Info.KEY);
But the values still exist. Should I add something?
Asked
Active
Viewed 122 times
0

Michael Donohue
- 11,776
- 5
- 31
- 44

mobileDeveloper
- 894
- 2
- 14
- 35
-
@fou.. you want to delete the value in PersistentStore or the store itself ? – Nilanchala Oct 21 '11 at 10:58
-
you getting any exception fro destroyPersistentObject() method call ? – Nilanchala Oct 21 '11 at 11:35
-
no but I want when the user exit the application and return after showing the screen of login and password – mobileDeveloper Oct 21 '11 at 12:45
-
paste the piece of code u using, that will help to debug. – Nilanchala Oct 21 '11 at 12:48
1 Answers
1
To destory the persistent object you should call PersistentStore.destroyPersistentObject(key) . It can throw ControlledAccessException if the caller does not have the permission to do it. Make sure you are calling the same key you are expecting to be deleted.

rfsk2010
- 8,571
- 4
- 32
- 46