我的问题仅在我锁定屏幕时出现并且仅在 Jellybean 4.1.2 和 4.2.2 中出现。在 Galaxy mini 和 HTC 上测试。两者都是氰mod。问题是当我锁定它时,它会调用 onPause 然后 onResume 然后再次 onPause 。当我解锁它时,它不会调用任何事件。当我按下主页并返回时,它表现正常。我还在 2.3.5 (Gingerbread) 上进行了测试,它运行良好。这怎么可能?
我认为这是 android 操作系统或 rom 中的错误,但我也认为可以找到解决方法。
如果可以的话,请给我一个答案。
03-04 20:14:30.844: D/dalvikvm(24688): Late-enabling CheckJNI
03-04 20:14:30.994: E/Trace(24688): error opening trace file: No such file or directory (2)
03-04 20:14:31.404: D/libEGL(24688): loaded /system/lib/egl/libEGL_adreno200.so
03-04 20:14:31.414: D/libEGL(24688): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
03-04 20:14:31.414: D/libEGL(24688): loaded /system/lib/egl/libGLESv2_adreno200.so
03-04 20:14:31.424: I/Adreno200-EGL(24688): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
03-04 20:14:31.424: I/Adreno200-EGL(24688): Build Date: 07/31/12 Tue
03-04 20:14:31.424: I/Adreno200-EGL(24688): Local Branch:
03-04 20:14:31.424: I/Adreno200-EGL(24688): Remote Branch: quic/master
03-04 20:14:31.424: I/Adreno200-EGL(24688): Local Patches: NONE
03-04 20:14:31.424: I/Adreno200-EGL(24688): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 + NOTHING
03-04 20:14:31.464: D/OpenGLRenderer(24688): Enabling debug mode 0 <- ENTERED THE APP
03-04 20:14:33.564: D/Weird Error(24688): Resumed
03-04 20:14:33.714: D/Weird Error(24688): Created
03-04 20:14:43.044: D/Weird Error(24688): Paused <- LOCKED THE SCREEN
03-04 20:14:43.244: W/IInputConnectionWrapper(24688): beginBatchEdit on inactive InputConnection
03-04 20:14:43.244: W/IInputConnectionWrapper(24688): endBatchEdit on inactive InputConnection
03-04 20:14:43.394: D/Weird Error(24688): Resumed
03-04 20:14:43.394: D/Weird Error(24688): Paused
03-04 20:16:31.294: I/dalvikvm(24688): threadid=3: reacting to signal 3
03-04 20:16:31.344: I/dalvikvm(24688): Wrote stack traces to '/data/anr/traces.txt'
03-04 20:16:38.054: E/Trace(24767): error opening trace file: No such file or directory (2)
03-04 20:16:38.384: D/libEGL(24767): loaded /system/lib/egl/libEGL_adreno200.so <- I GUESS UNLOCKED IT BUT NOTHING PROVES IT
03-04 20:16:38.384: D/libEGL(24767): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
03-04 20:16:38.394: D/libEGL(24767): loaded /system/lib/egl/libGLESv2_adreno200.so
03-04 20:16:38.394: I/Adreno200-EGL(24767): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB.04.01.01.00.036_msm8960_JB_CL2644550_release_AU (CL2644550)
03-04 20:16:38.394: I/Adreno200-EGL(24767): Build Date: 07/31/12 Tue
03-04 20:16:38.394: I/Adreno200-EGL(24767): Local Branch:
03-04 20:16:38.394: I/Adreno200-EGL(24767): Remote Branch: quic/master
03-04 20:16:38.394: I/Adreno200-EGL(24767): Local Patches: NONE
03-04 20:16:38.394: I/Adreno200-EGL(24767): Reconstruct Branch: AU_LINUX_ANDROID_JB.04.01.01.00.036 + NOTHING
03-04 20:16:38.434: D/OpenGLRenderer(24767): Enabling debug mode 0