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

继续记录中...

相关推荐
2501_915921434 分钟前
iOS 26 崩溃日志解析,新版系统下崩溃获取与诊断策略
android·ios·小程序·uni-app·cocoa·iphone·策略模式
聪明的笨猪猪38 分钟前
Java Spring “MVC ”面试清单(含超通俗生活案例与深度理解)
java·经验分享·笔记·面试
会飞的小蛮猪1 小时前
ELK运维之路(Elasticsearch7集群组建-7.17.24)
经验分享
LXS_3571 小时前
Day 09(下) B2a实例解说----exampleB2a.cc+ActionInitialization+PrimaryGeneratorAction
笔记·学习方法·改行学it·geant4·b2a
繁星星繁2 小时前
C++11学习笔记
c++·笔记·学习
齊家治國平天下2 小时前
Android 14 Input 事件派发机制深度剖析
android·input·hal
2501_916013743 小时前
iOS 推送开发完整指南,APNs 配置、证书申请、远程推送实现与上架调试经验分享
android·ios·小程序·https·uni-app·iphone·webview
金水谣3 小时前
10.8考研笔记
笔记
李艺为5 小时前
非预置应用使用platform签名并且添加了android.uid.system无法adb安装解决方法
android·adb
李宥小哥6 小时前
C#基础11-常用类
android·java·c#