07-21-2009 07:31 AM
How can I delete the persistent storage when the application gets uninstalled....
Because when i install the application with the same database name I want a fresh copy of perssistent storage
Thanks..
Solved! Go to Solution.
07-21-2009 07:35 AM
Store instances of your persistable classes and in this case these objects will be removed when your app uninstalled.
07-21-2009 07:40 AM
the persistent does not get deleted when the application is uninstalled....
When i install the application with the same persistent storage name... the old entries are retrieved which
were stored in persistent storage.
To get the new database I have to delete it.... or create a new database(i.e different new persistent storage name) to get the new
persistent storage...
Thanks....
07-21-2009 07:48 AM
Try with reseting during uninstallation.
Somthing like:
javaloader -usb erase -f applicationName.cod
Regards
Bikas
07-21-2009 07:54 AM
1) I am using DesktopManager to uninstall the application
Also tried
2) deleting the application from Option-->Security Options...
But in both cases the persistent storage does not get deleted.
What in case of end user who uninstalls the application from desktop managers
Can you please explain how can i use the above command.....
But is it possible to delete the database via desktop manager...
Do I need to add something in the code..so that the database gets deleted when it is uninstalled....
Thanks...
07-21-2009 08:03 AM
07-21-2009 08:05 AM - edited 07-21-2009 08:06 AM
If you are using Vector, String class instances to store data in Persistent Store it will remain after app is uninstalled.
But if you stored instances of your classes like:
class MyStorageBlock implements Persistable {
private String myData;
...........
}
then all these objects will be removed when your app is uninstalled.
It does work for me and for my customers.
07-21-2009 08:11 AM
Yes I am storing Vector in the Persistent storage.
if I create a follwing class
public class MyVector extends Vector implements Persistable {
}
Will that data be deleted on uninstallation
07-21-2009 08:17 AM
07-21-2009 08:18 AM