-3

I'm developing an android app in which I write information on some .dat files, I want to find a way to delete all the app's data of my Android app, writing some Java code. Anyone knows how to solve this problem ?

AppData

Community
  • 1
  • 1
ohhConti
  • 23
  • 1
  • 6

2 Answers2

0

You have to find data folder of each application and remove it.

For example your application data is stored there: /data/data/com.example.applicationpackagename/

Here is more information how to remove whole folder: How to delete a whole folder and content?

Raspberry
  • 337
  • 2
  • 4
  • 16
0

If you are using shared presence than just run below code:

prefence.edit().clear().apply();
Harsh Mittal
  • 449
  • 3
  • 10