mobileDeveloper
mobileDeveloper

Reputation: 894

destroy persistance from blackberry

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?

Upvotes: 0

Views: 124

Answers (1)

rfsk2010
rfsk2010

Reputation: 8611

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.

Upvotes: 1

Related Questions