在android文件资源管理器中看不到数据库

时间:2012-10-29 13:26:57

标签: android

我是Android编程的新手,现在正在使用SQLite数据库。我有一个简单的示例并创建代码:

public TimeTrackerOpenHelper(Context context) {
    super(context, "timetracker.db", null, 1);

}

@Override
public void onCreate(SQLiteDatabase db) {


}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {


}

在我的activity类的onCreate方法中,我为TimeTrackerOpenHelper创建了一个openHelper:

    TimeTrackerOpenHelper openHelpler = new TimeTrackerOpenHelper(this);

我运行代码并按照路径数据/数据/打开文件资源管理器,但我看不到数据库文件夹。为什么它没有显示?

1 个答案:

答案 0 :(得分:1)

I'm running the code and opening the file explorer following the path data/data/ but i can't see databases folder. why it isn't showed?

如果您正在设备上进行测试,那么除非您的设备已植根,否则无法会看到数据库文件。

如果要查看数据库文件。你可以使用ADV

相关问题