Reputation: 704
I am new to android programming, and have been trying to write a file to internal storage, and believe I have succeeded.
HOWEVER I have probably written like 20 different variations of "Test File" to whatever directory I was writing too, and now I am trying to find that directory on my android device so I can delete those files.
I have searched through /system/app and cannot find my app there. Am I looking in the wrong place? or does something different happen when you deploy it through Android Studio debugger?
Upvotes: 1
Views: 3149
Reputation: 79
I know this is a late answer but for anyone looking for files created in internal storage: you can view them in Device File Explorer in Android Studio. Just go to data/data/your.package.name/files
.
Upvotes: 0
Reputation: 1820
Files written to the internal storage are private to your app. Only the app can access the files. You can write delete functionality in your app or if you uninstall the app, those files will be deleted.
For reference:
By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). When the user uninstalls your application, these files are removed.
Upvotes: 1
Reputation: 1060
Files for your app are stored in a subdirectory of /data/data
and are only accessible to your app unless you have root privileges on the device. If you want to delete the files, you will need to add "delete" functionality to your app, or root your device. I suspect the former will probably be easier for you.
Upvotes: 0