关于DatabaseHelper extends SQLiteOpenHelper的操作,
@Override
public void close() {
if (this != null) {
this.close();
} }程序运行时正常,退出程序时this.close(); 这句话报错java.lang.StackOverflowError
本人菜鸟,谢谢了。
@Override
public void close() {
if (this != null) {
this.close();
} }程序运行时正常,退出程序时this.close(); 这句话报错java.lang.StackOverflowError
本人菜鸟,谢谢了。
解决方案 »
- BaseAdapter的getView问题
- android 如何过滤陀螺仪的漂移和噪声误差
- AS3.0开发的AIR for Android应用问题!
- 求大侠帮忙,在一个程序中,点一下图片或者按钮,浏览器就调出 ,并跳到指定网页
- 哥哥姐姐们,请进啊!关于飞行模式的问题。
- android 如何实现SharedPreferences 顺序存储
- 报错的Logcat The application may be doing too much work on its main threa
- Android工程中如何导入jar包,覆盖android.jar包中已有的包?
- 有谁添加过移动MM的SDK,大神来!
- 服务器返回一串奇怪的数字?!
- 【各抒己见】关于Eclipse下使用ADT开发Android 的想法
- System.loadLibrary 超时求教...
if (this != null) { //2
this.close(); //3
} }2一直为真,进入3,3调用close方法,回到1,继续判断2,一直递归循环,导致堆栈溢出。
this.close(); //3
3还是嵌套 所以栈溢出。。囧死了。谢谢