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 ?
Asked
Active
Viewed 514 times
-3
-
Do yo wanna clear your app's data? – Paresh P. Jun 03 '17 at 07:21
-
Check [this](https://stackoverflow.com/questions/6134103/clear-applications-data-programmatically) out. – GGWP Jun 03 '17 at 07:29
-
Yes, I want to delete App's data as shown in the picture – ohhConti Jun 03 '17 at 07:33
2 Answers
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