我用的是中兴的手机,已经ROOT。
debug时,代码:Cursor cursor = SQLiteUtil.getInstance().openSQLQuery(aaa, strSql);出错,日志文件显示:Failed to open database '/sdcard/mobile.db'.
E/SQLiteDatabase(3229): android.database.sqlite.SQLiteException: not an error (code 0): Could not open the database in read/write mode.
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked
..............
.........
.....
...
..
.
同样的程序再另外一台HTC的手机上没事
请问这是怎么回事,如何解决?
万分感谢~~~androidsqlite数据库debugcursor
debug时,代码:Cursor cursor = SQLiteUtil.getInstance().openSQLQuery(aaa, strSql);出错,日志文件显示:Failed to open database '/sdcard/mobile.db'.
E/SQLiteDatabase(3229): android.database.sqlite.SQLiteException: not an error (code 0): Could not open the database in read/write mode.
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
E/SQLiteDatabase(3229): at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked
..............
.........
.....
...
..
.
同样的程序再另外一台HTC的手机上没事
请问这是怎么回事,如何解决?
万分感谢~~~androidsqlite数据库debugcursor
解决方案 »
- android应用软件如何存取MS SQL SERVER或 oracle数据库中的数据。
- 如何判断一张png图片是否已经损坏?
- 想编写一个像360一样的安全软件,不过想了解360的实现原理
- 查询一个表,怎样做能让结果按拼音来排序
- android 服务及页面中的多个线程 的问题
- warning:xml has more than 80 views, bad for performance的问题
- android gridview 的拖动+gridview下拉刷新
- 关于构想的移动web应用程序设计框架的思考
- 全局变量
- 关于布局的问题
- 怎样自定义TimePickerDialog上面每次点击加减号时时间变化的数值
- android 中大数据库 导出到手机里或者电脑上的某个文件夹中
可能是手机版本的问题,提示是无法在读写模式下打开文件。