There is, to my knowledge, no such thing as a 'wiping all data of my app' 
programmatically .

However, you can program something similar yourself.

Add a setting (SharedPreferences setting) to your app that stores the 
version-number of your app that the user is running.

Upon start-up, read this setting. Compare this value with the current 
version-number of your app from the package manager. If this current 
version is larger than the one stored in the setting, this means the user 
has just installed a newer version of you app. If the user has installed a 
newer version of your app, then either wipe all the data your app or reset 
it to its default values before you let your user continue.   

On Sunday, June 15, 2014 11:24:36 PM UTC-4, Ricardo Cardoso wrote:
>
> How do I delete the application between deploys in Android Studio?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to