Android Question saving files

amir80

New Member
Hello every one, I wanna save my SQLite file (*.db) to a normal folder.
in notice that I can save it in this way:
File.Copy(File.DirAssets,"ansdb.db",File.DirInternal,"ansdb.db")
but I can't see the file in my phone. I wanna save it in way to I be able to see the file and copy it in my pc.
any one know how to do this?
 

Erel

Administrator
Staff member
Licensed User
File.DirInternal is only accessible from your own app.

You can use File.DirRootExternal or better RuntimePermissions.GetSafeDirDefaultExternal to store the file on the shared storage.
 
Top