You can most times do something like this: File.ListFiles("/mnt"). This will show the directory structure of the device. On my device I see directories like:
/mnt/media
/mnt/sdcard
You can then make a directory like you App name on one of these like:
/mnt/sdcard/myappname/backup/data
Then copy all the data to that directory. If the user uninstalls your app this directory will not be deleted.
File.MakeDir("/mnt/media", "yourappname/backup/data") 'Nook - Internal
File.MakeDir("/mnt/sdcard", "yourappname/backup/data") 'Kindle Fire - Internal
File.MakeDir("/mnt/sdcard", "yourappname/backup/data") 'ASUS Eee Pad - Internal
File.MakeDir("/mnt/Removable/microSD", "yourappname/backup/data") 'ASUS Eee Pad - External
File.MakeDir("/mnt","appname/My Backup")
Log(File.ListFiles("/mnt/appname/My Backup"))
For i=0 To FileList.Size-1
File.Copy(File.DirInternal,FileList.Get(i),"/mnt/appname/My Backup",FileList.Get(i))
Next
Log(File.ListFiles("/mnt/Jonsap/IV Drips"))
You path is definitely wrong.
What is the device under the mount point?
It should be something like "/mnt/sdcard" (and then your app and directory)
I always use file.DirRootExternal for custom paths on the sdcard (internal memory)
file.DirDefaultExternal is your apps data path on the sdcard (internal memory).
Do a Log of both to see where they are pointed to.
/mnt is a directory on linux/android where you can see all storage devices mounted.
Yes. It gets deleted.Maybe Erel can confirm for us soon. Does DirDefaultExternal get deleted when the app is uninstalled?
Yes. It gets deleted.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?