Android : 异常记录

查询大数据时 报错

复制代码
android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=1


解决办法:
  cursor = DB.rawQuery("select * from "+ DBhelpUtil.TABLE_NAME+" where id =?",new String[]{id+""});
        
// 解决报错;android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=0, totalRows=1

 // 设置CursorWindow的大小为5000000
CursorWindow cw = new CursorWindow("test", 5000000);
AbstractWindowedCursor ac = (AbstractWindowedCursor) cursor;
ac.setWindow(cw);

没有读、写配置权限

复制代码
 Process: com.example.mygetdata, PID: 21370

java.lang.SecurityException: Permission Denial: opening provider 

com.android.providers.contacts.ContactsProvider2 from ProcessRecord{a76da5b 

21370:com.example.mygetdata/u0a266} (pid=21370, uid=10266) requires 

android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

数组适配器 里面只能是 TextView

复制代码
Process: com.example.mygetdata, PID: 11963 
java.lang.IllegalStateException:
 ArrayAdapter requires the resource ID to be a TextView

继续记录中...

相关推荐
帅次1 天前
Android 高级工程师面试参考答案:Framework、生命周期、View 与 Binder
android·面试·binder
w2018001 天前
段永平投资问答录pdf完整版
笔记·pdf
我的征途是星辰大海。1 天前
设计模式(学习笔记)(第一章)
笔记·学习·设计模式
程序员陆业聪1 天前
AI提效Android开发全景图:从需求到上线的AI工具链
android
弘毅 失败的 mian1 天前
STM32 时钟详解
经验分享·笔记·stm32·单片机·嵌入式硬件·嵌入式
李白的天不白1 天前
滚动条样式大全
android
qeen871 天前
【算法笔记】差分与经典例题解析
c语言·c++·笔记·学习·算法·差分
中屹指纹浏览器1 天前
2026分布式多账号运营下指纹浏览器集群调度方案
经验分享·笔记
程序员陆业聪1 天前
你调的每一个接口背后,到底发生了什么?
android
摇滚侠1 天前
Java 零基础全套视频教程,面向对象(进阶),笔记 90-103
java·开发语言·笔记