做了一个动画效果,装入了很多很小的图片,出错,errow如下:
07-14 13:28:39.775: E/memtrack(3230): Couldn't load memtrack module (No such file or directory)
07-14 13:28:39.775: E/android.os.Debug(3230): failed to load memtrack module: -2
07-14 13:28:42.485: E/memtrack(3245): Couldn't load memtrack module (No such file or directory)
07-14 13:28:42.485: E/android.os.Debug(3245): failed to load memtrack module: -2
07-14 13:28:43.175: E/libEGL(51): called unimplemented OpenGL ES API
07-14 13:28:43.185: E/libEGL(51): called unimplemented OpenGL ES API
07-14 13:28:43.185: E/libEGL(51): called unimplemented OpenGL ES API
07-14 13:28:43.185: E/libEGL(51): called unimplemented OpenGL ES API
07-14 13:28:43.185: E/SurfaceFlinger(51): glCheckFramebufferStatusOES error 1869452924
07-14 13:28:43.185: E/SurfaceFlinger(51): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
07-14 13:28:43.185: E/libEGL(51): called unimplemented OpenGL ES API
07-14 13:28:43.185: E/libEGL(51): called unimplemented OpenGL ES API
07-14 13:29:03.715: E/AndroidRuntime(3256): FATAL EXCEPTION: Thread-126
07-14 13:29:03.715: E/AndroidRuntime(3256): Process: com.zhutiansoft, PID: 3256
07-14 13:29:03.715: E/AndroidRuntime(3256): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6094)
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:857)
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.ViewGroup.invalidateChild(ViewGroup.java:4320)
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.View.invalidate(View.java:10935)
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.View.invalidateViewProperty(View.java:10964)
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.View.setTranslationY(View.java:10335)
07-14 13:29:03.715: E/AndroidRuntime(3256): at android.view.View.setY(View.java:10260)
07-14 13:29:03.715: E/AndroidRuntime(3256): at com.zhutiansoft.MainActivity$4.run(MainActivity.java:163)
07-14 13:29:03.715: E/AndroidRuntime(3256): at java.lang.Thread.run(Thread.java:841)
07-14 13:29:07.695: E/SoundPool(437): error loading /system/media/audio/ui/Effect_Tick.ogg
07-14 13:29:07.695: E/SoundPool(437): error loading /system/media/audio/ui/Effect_Tick.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/Effect_Tick.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/Effect_Tick.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/Effect_Tick.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/KeypressStandard.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/KeypressDelete.ogg
07-14 13:29:07.705: E/SoundPool(437): error loading /system/media/audio/ui/KeypressReturn.ogg
07-14 13:29:07.745: E/SoundPool(437): error loading /system/media/audio/ui/KeypressInvalid.ogg
我错在这句吗:
Only the original thread that created a view hierarchy can touch its views.
------解决方案--------------------
把你的错误挨个放到GOOGLE中搜下
------解决方案--------------------
不要在非UI线程里做UI更新