如何在本机层中获取Android异常?

时间:2014-01-23 04:27:53

标签: android exception logcat

例如,我希望我的APP上传以下异常。

特别是前2行,而不仅仅是java例外。

E/SQLiteLog(10757): (14) cannot open file at line 30178 of [00bb9c9ce4]
E/SQLiteLog(10757): (14) os_unix.c:30178: (2) open(/data/data/com.efei.testdb/databases/myDB.db) - 
E/SQLiteDatabase(10757): Failed to open database '/data/data/com.efei.testdb/databases/myDB.db'.
E/SQLiteDatabase(10757): android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
E/SQLiteDatabase(10757):    at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:669)
E/SQLiteDatabase(10757):    at com.efei.testdb.MainActivity.getInfo(MainActivity.java:120)
E/SQLiteDatabase(10757):    at com.efei.testdb.MainActivity$QueryThread.run(MainActivity.java:46)

提前致谢!!!

0 个答案:

没有答案