Initiating "Clear data" for an app from settings in app code (Android) -



Initiating "Clear data" for an app from settings in app code (Android) -

i know may seem silly question, possible?

in cause wondering why asking this... made update app of mine that, if installed on previous versions, create crash in vital point, , work if go settings , "clear data". wondering if utilize code snippet create automatically version.

a improve prepare problem figure out why crashing @ point , address that. can create utilize of sqlitehelper#onupgrade method accomplish this.

that beingness said. assume prepare problem:

file dir = context.getfilesdir(); fileutils.cleandirectory(dir);

that gets private file directory application , clears it, clear info function do.

android

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -