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

Adobe AIR Development

Reply
Highlighted
New Contributor
Posts: 8
Registered: ‎02-08-2011
My Device: Not Specified

Uninstall Does Not Clear Data (0.9.3)

I've uninstalled my app and it seems like the data in "applicationStorageDirectory" is not wiped.

 

I have a SQLLite db that I'd like to wipe out. (I guess I could delete it through As3 but that's no fun)

SR Web Developer @ Jam3
http://labs.jam3.ca/
Developer
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: Uninstall Does Not Clear Data (0.9.3)

hey MikkoH,

 

there is a therad posted before that might help you out here:

 

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Run-Config-Clear-Application-data...

 

It clears all data including anything in the storage im assuming. hope that helps. good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Uninstall Does Not Clear Data (0.9.3)

How are you uninstalling, and are you certain the uninstall succeeded?

 

Are you possibly mixing up two "modes" of the app, one that you built with debug mode and the other without?  They can install under separate folders.

 

Are you possibly writing your database somewhere else, without realizing it?  Maybe temporary code that was writing to the shared folders, or to /accounts/devuser?

 

Do you know how to connect with SSH?  You can now go into the app's own applicationStorageDirectory, if you packaged it with the "-devMode" option, and inspect any of its data.  You can verify for yourself (as I just did) that a proper uninstall really does remove all traces of the app and its data.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Contributor
Posts: 8
Registered: ‎02-08-2011
My Device: Not Specified

Re: Uninstall Does Not Clear Data (0.9.3)

I was uninstalling through the commandline.

 

It was uninstalling perfectly.

 

The mention above to check "delete" data on install seemed to work great. Thanks.

SR Web Developer @ Jam3
http://labs.jam3.ca/
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Uninstall Does Not Clear Data (0.9.3)

MikkoH, it wasn't clear that you were running on your host machine, not in the simulator.  That check box doesn't apply to the simulator, I believe.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Contributor
Posts: 8
Registered: ‎02-08-2011
My Device: Not Specified

Re: Uninstall Does Not Clear Data (0.9.3)

No I was running on the simulator and yes the checkbox works for the Simulator.

 

Oddly enough I'd assume the checkbox wouldn't work for simulator but the command line "uninstall' would work.

SR Web Developer @ Jam3
http://labs.jam3.ca/
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Uninstall Does Not Clear Data (0.9.3)

Interesting... I think what it must do is an actual uninstall followed by an install.  With the checkbox disabled, I guess it's able to do just an install, which overwrites the applicationDirectory but not the applicationStorageDirectory.

 

Good to know... if using the command line, I'm sure "blackberry-deploy -uninstallApp" does remove the data as well.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!