Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何跟踪在 android 应用程序中创建的 SQLite 数据库的路径?有人可以有更好的建议吗?
用于getDatabasePath(DataBaseHelper.dbName)获取创建数据库的文件系统上的绝对路径
getDatabasePath(DataBaseHelper.dbName)
查看文档
例子
Log.i("Data base path",getDatabasePath("name_of_yourdb.db").toString());
这是路径:data/data/Application_Name/databases/