`

android 4.0 以上平台选择图片报错Attempted to access a cursor after it has been closed.

 
阅读更多

android 4.0 以上平台选择图片报错Attempted to access a cursor after it has been closed.

android.database.StaleDataException: Attempted to access a cursor after it has been closed.
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2444)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2472)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1173)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.StaleDataException: Attempted to access a cursor after it has been closed.

 

 

 4.0以上平台会自动关闭cursor

 

  //4.0以上的版本会自动关闭 (4.0--14;; 4.0.3--15)  
                if(Integer.parseInt(Build.VERSION.SDK) < 14)  
                {  
                    cursor.close();  
                }  

 

分享到:
评论

相关推荐

    Kernel panic - not syncing: Attempted to kill init 解决办法

    Kernel panic - not syncing: Attempted to kill init 解决办法 开源成就技术;技术成就梦想

    BURNINTEST--硬件检测工具

    A 2 minute timeout has been added to the collection of system information. - Video playback, Hard disk and CD/DVD test 'no operations' error reporting changed. - When BurnInTest crashes, it will ...

    IDEA链接MySQL报错08001和连接成功后不显示表的问题及解决方法

    报错Connection to blog0@localhost failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. 解决办法:在url后面拼接?serverTimezone=UTC 连接成功后数据库...

    myeclipse用svn提交的时候报错

    在使用MyEclipse进行SVN提交时遇到错误:“Attempted to lock an already-locked dir”,具体表现为以下错误信息: ``` svn: Working copy 'D:/Program Files/MyEclipse 6.6flex/workspace/emis/WebRoot/emis/...

    曲线拟合工具CurveExpert 1.0

    windows had been closed prior to invoking it. Fixed. + the Window|Cascade command did not properly cascade windows that were minimized. Fixed. + the last tick and label sometimes wasn't shown on ...

    ios-系统方法实现二维码扫描、识别和生成.zip

    This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value ...

    GPU Pro 360 Guide to GPGPU.pdf

    permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted ...

    GPU Pro 360 Guide to Lighting.pdf

    permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted ...

    Introduction.To.Algorithms,.Second.Edition

    Preface This book provides a comprehensive...Though it may be hard to believe for a book of this size, many interesting algorithms could not be included due to lack of space. Despite myriad requests from

    Flappy Bird Clone Source Code For Delphi XE5 Firemonkey On Android And IOS

    I attempted to apply a ratio to my hard coded movement and placement numbers so that it would take the screen size into account but was unable to really get or make a usable ratio for the screen size....

    Introduction to Finite and Spectral Element Methods Using MATLAB®Second Edition

    Introduction to Finite and Spectral Element Methods Using MATLAB®Second Edition This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made ...

    Hello.Android.4th.Edition

    that no previous platform has attempted. • High-quality graphics and sound: Smooth, antialiased 2D and 3D-accelerated graphics have enabled new kinds of games and business applications. Codecs for ...

    Satellite Altimetry Over Oceans and Land Surfaces-Detlef Stammer (2018)

    This book contains information obtained from ...form has not been obtained. If any copyright material has not been acknowledged, please write and let us know so we may rectify in any future reprint.

    IOS10 隐私权限设置实例详解

    This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value ...

    Graph Theory with Algorithms and its Applications

    Graph Theory has become an important ...and presentation of material, it has been attempted to accommodate elementary concepts on essential basis so as to offer guidance to those new to the field.

    Kernel panic(Attempted to kill init!).zip

    在Linux系统中,"Kernel panic(Attempted to kill init!)"是一个非常严重的错误提示,它意味着内核遇到了无法恢复的问题,通常会导致系统崩溃。这个错误通常发生在ARM架构的设备上,比如开发板、嵌入式系统或者...

    snipe-it-4.9.4_snipeit_snipe-it_it_it固定资产_snipeit_

    Snipe-IT 是一个开源的资产管理系统。Snipe-IT 用于IT资产管理,IT部门通过它能够跟踪谁拥有哪台笔记本电脑、何时购买、包含哪些软件许可证和可用的附件等等。功能特性托管在云主机强大的 REST API快速更新保证 App ...

    量子计算:从线性代数到物理实现

    able efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The ...

Global site tag (gtag.js) - Google Analytics