从`CoundownTimer`的`onTick()`开始活动

时间:2015-03-06 08:00:59

标签: android countdowntimer start-activity

我正在尝试从onTick()的{​​{1}}开始活动。它崩溃了我的应用程序。它给了我这个错误CountDownTimer,这是我的logcat

OutOfResourcesException initializing HW surface android.view.Surface$OutOfResourcesException: eglMakeCurrent failed EGL_BAD_ALLOC

这是我的 12-06 13:05:37.519: E/Adreno200-EGLSUB(5424): SwapBuffers() dequeue native buffer fail: Out of memory 12-06 13:05:37.519: E/Adreno200-EGLSUB(5424): GetSurfaceSize() dequeue native buffer failed: Out of memory. 12-06 13:05:37.519: E/Adreno200-EGLSUB(5424): GetSurfaceSize() dequeue native buffer failed: Device or resource busy. 12-06 13:05:37.519: E/Adreno200-EGL(5424): <eglSurfaceResize:4020>: EGL_BAD_ALLOC 12-06 13:05:37.589: E/Adreno200-EGLSUB(5424): GetSurfaceSize() dequeue native buffer failed: Out of memory. 12-06 13:05:37.589: E/Adreno200-EGLSUB(5424): GetSurfaceSize() dequeue native buffer failed: Out of memory. 12-06 13:05:37.589: E/Adreno200-EGLSUB(5424): GetSurfaceSize() dequeue native buffer failed: Out of memory. 12-06 13:05:37.589: E/Adreno200-EGL(5424): <qeglDrvAPI_eglMakeCurrent:2734>: EGL_BAD_ALLOC 12-06 13:05:37.589: E/libEGL(5424): eglMakeCurrent:678 error 3003 (EGL_BAD_ALLOC) 12-06 13:05:37.599: E/ViewRootImpl(5424): OutOfResourcesException initializing HW surface 12-06 13:05:37.599: E/ViewRootImpl(5424): android.view.Surface$OutOfResourcesException: eglMakeCurrent failed EGL_BAD_ALLOC 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.view.HardwareRenderer$GlRenderer.createEglSurface(HardwareRenderer.java:689) 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:519) 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1300) 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2445) 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.os.Handler.dispatchMessage(Handler.java:99) 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.os.Looper.loop(Looper.java:137) 12-06 13:05:37.599: E/ViewRootImpl(5424): at android.app.ActivityThread.main(ActivityThread.java:4424) 12-06 13:05:37.599: E/ViewRootImpl(5424): at java.lang.reflect.Method.invokeNative(Native Method) 12-06 13:05:37.599: E/ViewRootImpl(5424): at java.lang.reflect.Method.invoke(Method.java:511) 12-06 13:05:37.599: E/ViewRootImpl(5424): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787) 12-06 13:05:37.599: E/ViewRootImpl(5424): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554) 12-06 13:05:37.599: E/ViewRootImpl(5424): at dalvik.system.NativeStart.main(Native Method) 功能代码。

onTick()

0 个答案:

没有答案