Doubts about directroy DirInternal or DirRootExternal for updates etc ?

sagt3k

Member
Licensed User
Longtime User
I have doubts about these directrory:
1) My doubt is that I would like to create a file type "app.cfg" etc on one of the two directories, "DirInternal" or "DirRootExternal". This file should NOT be canceled once it is made ​​an update from the store and then play with the upgrade later published with the new .apk with the play store. Which directory should I use?

2) If I delete the app from the android, also remove the files that I created on one of the two directories?

3) If I move the app from the device to the SD card , move that file created on one of these two directories on SD or not?

Thanks for your help :sign0085:
 

NJDude

Expert
Licensed User
Longtime User
1) My doubt is that I would like to create a file type "app.cfg" etc on one of the two directories, "DirInternal" or "DirRootExternal". This file should NOT be canceled once it is made ​​an update from the store and then play with the upgrade later published with the new .apk with the play store. Which directory should I use?
If you want to protect that file, save it on DirInternal, that directory is only accessed by your app (rooted phones are a different story, also, if you "CLEAR CACHE and CLEAR DATA from the Apps -> Settings screen on your device these files will also be deleted)

2) If I delete the app from the android, also remove the files that I created on one of the two directories?
Removing the app from the device will delete everything in DirDefaultExternal and DirInternal.

3) If I move the app from the device to the SD card , move that file created on one of these two directories on SD or not?
DirDefaultExternal is the internal SDCard, you will be moving the app only not the data, the data is already there, DirInternal will remain untouched.
 
Upvote 0

sagt3k

Member
Licensed User
Longtime User
Thanks, but I did not understand the first part. If I save a file on DirInternal and apply "CLEAR CACHE or CLEAR DATA from Android" the files will be deleted or not?
 
Upvote 0
Top