我正在尝试打开sqlite数据库(/data/data/com.android.browser/databases/webview.db) 在root下(当然,手机已经扎根)。
And i get an error:
03-22 20:51:55.215: E/Database(16710): sqlite3_open_v2("/data/data/com.android.browser/databases/webview.db", &handle, 1, NULL) failed
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
Runtime.getRuntime().exec("su");
EmployeeTable employeeTable = new EmployeeTable(this);
System.out.println(employeeTable.databaseExist());//false
} catch (IOException e) {
System.out.println(e.getMessage());
}
}