How to access an existing sqlite database in Android?

后端 未结 4 1728
长发绾君心
长发绾君心 2020-11-30 23:58

So far we have developed apps in android that create database on runtime. We like to know how can we access a pre-built or existing database/sqlite file in our android app?

4条回答
  •  既然无缘
    2020-12-01 00:19

    Use this for accessing database in application :

    Context context = getApplicationContext();
    context.getDatabasePath(DataBaseHelper.database_Name);
    

提交回复
热议问题