Get databases directory for my app programmatically

前端 未结 5 1548
孤城傲影
孤城傲影 2020-12-10 12:20

I want to use a \"pre loaded\" database in my app. There are tons of questions about this and most point to this blog article here or similars.

So far so good. I jus

5条回答
  •  半阙折子戏
    2020-12-10 13:13

    I used...

    String destPath = getFilesDir().getPath();
    destPath = destPath.substring(0, destPath.lastIndexOf("/")) + "/databases";
    

提交回复
热议问题