当前位置:操作系统 > 安卓/Android >>

android 异常积累(myself)

1.android.database.StaleDataException: Attempted to access a cursor after it has been closed.   
我的解决方法为: //4.0以上的版本会自动关闭 (4.0--14;; 4.0.3--15) ;
 
 
 
if(Integer.parseInt(Build.VERSION.SDK) < 14)    
  
                {    
                    cursor.close();    
                }  

 

 
 
 
补充:移动开发 , Android ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,