Android Question saving files

Discussion in 'Android Questions' started by amir80, Mar 13, 2018.

Tags:
  1. amir80

    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?
     
  2. Erel

    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.
     
  3. amir80

    amir80 New Member

    Oh, thank you very much
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice