我有一个包含四条信息的数据库,当我点击保存日志cat消息时说它被插入到行id = 0(每次都是这种情况)。它最近才开始这样做,我不能为我的生活做出努力。 也正因为如此,它也不再填充我的列表视图。有人有任何想法吗?
05-01 07:41:05.500: D/DAO(3711): Insert ROWID = 0
05-01 07:41:05.540: I/DiaryEntry(3711): onPause
05-01 07:41:05.810: I/DiaryList(3711): onResume
05-01 07:41:05.880: I/DiaryList(3711): cursor refreshed in onresume
05-01 07:41:05.930: V/PhoneStatusBar(1622): setLightsOn(true)
05-01 07:41:06.170: I/Choreographer(3711): Skipped 67 frames! The application may be doing too much work on its main thread.
05-01 07:41:06.720: I/Choreographer(1266): Skipped 53 frames! The application may be doing too much work on its main thread.
05-01 07:41:10.150: I/Choreographer(1266): Skipped 844 frames! The application may be doing too much work on its main thread.
05-01 07:41:13.250: I/Choreographer(1266): Skipped 803 frames! The application may be doing too much work on its main thread.
05-01 07:41:15.560: W/ActivityManager(1266): Launch timeout has expired, giving up wake lock!
05-01 07:41:16.680: I/DiaryEntry(3711): onStop
05-01 07:41:16.680: I/DiaryEntry(3711): onDestroy
05-01 07:41:16.790: I/Choreographer(3711): Skipped 31 frames! The application may be doing too much work on its main thread.
05-01 07:41:19.820: I/ActivityManager(1266): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher} from pid 1266
05-01 07:41:19.860: D/gralloc(914): Registering a buffer in the process that created it. This may cause memory ordering problems.
05-01 07:41:19.860: E/libEGL(914): called unimplemented OpenGL ES API
05-01 07:41:19.860: E/libEGL(914): called unimplemented OpenGL ES API
05-01 07:41:19.860: E/libEGL(914): called unimplemented OpenGL ES API
05-01 07:41:19.860: E/libEGL(914): called unimplemented OpenGL ES API
05-01 07:41:19.860: E/SurfaceFlinger(914): glCheckFramebufferStatusOES error -1963549556
05-01 07:41:19.860: E/SurfaceFlinger(914): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
05-01 07:41:19.860: E/libEGL(914): called unimplemented OpenGL ES API
05-01 07:41:19.860: E/libEGL(914): called unimplemented OpenGL ES API
答案 0 :(得分:0)
我认为你需要检查你的数据库是否确实插入了。还有一个原因是您没有在代码中打印异常堆栈跟踪。因此,您没有获得正确的错误信息