SqliteDB location

Anonymous
2023-03-21T12:55:48.2333333+00:00

I have an application in xamarin forms and I use SQLite to create a database and store all my data but I can't find my database. I've tried using adb but when I am pulling the file that was meant to have my database the adb says pulled successfully 0 files. here is where the database was meant to be stored but there is nothing in there.

string databasepath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "sqlitedatbase.db3");

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,901 Reputation points Microsoft Vendor
    2023-03-22T02:03:13.64+00:00

    Hello,

    Your save DB path is "/data/user/0/com.companyname.yourprojet/files". This DB file could be found by android device file explorer in android studio.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful