10-29-2012 11:30 AM
I have problem in blackberry 9810 ..? actually i am getting some data from server in starting of my app and this data i stored in local storage while application launch .but when i delete my application and and reinstall same application .this time it not store the data(mean it not call web service) , it goes to else condition. i think device can't able to delete local storage..?
why this happen?
is there any function which we can call before deletion of app..?
10-30-2012 12:33 AM
10-30-2012 03:17 AM
I think it can't be possible to delete the LocalStorage.
However you can remove the Item stored in the localstorage
here's the code:
localStorage.setItem("name", "Hello World!"); //saves to the database, key/value document.write(localStorage.getItem("name")); //Hello World! localStorage.removeItem("name"); //deletes the matching item from the database
try it and check once.... may be it will help you.
Thanks & Regards,