我用的是中兴的手机,已经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
解决方案 »
- 怎么让Notification添加的状态图标上加上数字,像安卓市场提示有几个应用要升级一样
- AlertDialog对话框中从EditText中取数据的问题。还挺纠结的。
- search bar点击消失
- android 英语学习游戏开发
- android中listview中的布局问题
- Listview的item是一个HorizontalScrollView,则无法响应onItemClickListener监听器事件了。
- android 客户端 用socket接收xml字符串问题
- 关于安卓
- 微信微博图片分享问题
- Android出安全大漏洞了!
- 怎样自定义TimePickerDialog上面每次点击加减号时时间变化的数值
- android 中大数据库 导出到手机里或者电脑上的某个文件夹中
可能是手机版本的问题,提示是无法在读写模式下打开文件。