FATAL EXCEPTION: Timer-0 java.lang.IllegalArgumentException
来源:互联网 发布:java不区分大小写比较 编辑:程序博客网 时间:2024/06/05 14:37
描述:
01-21 07:00:40.523: E/AndroidRuntime(717): FATAL EXCEPTION: Timer-0
01-21 07:00:40.523: E/AndroidRuntime(717): java.lang.IllegalArgumentException
01-21 07:00:40.523: E/AndroidRuntime(717): at android.view.Surface.unlockCanvasAndPost(Native Method)
01-21 07:00:40.523: E/AndroidRuntime(717): at android.view.SurfaceView$3.unlockCanvasAndPost(SurfaceView.java:793)
01-21 07:00:40.523: E/AndroidRuntime(717): at com.testSurfaceView.TestSurfaceView.SimpleDraw(TestSurfaceView.java:217)
01-21 07:00:40.523: E/AndroidRuntime(717): at com.testSurfaceView.TestSurfaceView$MyTimerTask.run(TestSurfaceView.java:163)
01-21 07:00:40.523: E/AndroidRuntime(717): at java.util.Timer$TimerImpl.run(Timer.java:284)
搜索到的解释:
(1) 版本问题
Iam getting this error at the time of video playback and the platform
is Moto Droid with Froyo. Have to tell you, this has started ever
since my Droid got upgraded to 2.2.
(2) timer和AndroidUI的操作问题
KK wrote:
> hi,
> Seems the logcat
>> 11-26 13:32:06.727: ERROR/AndroidRuntime(10779): FATAL EXCEPTION: Timer-0
> 11-26 13:32:06.727: ERROR/AndroidRuntime(10779):> java.lang.IllegalStateException
> 11-26 13:32:06.727: ERROR/AndroidRuntime(10779): at> android.media.MediaPlayer.getCurrentPosition(Native Method)
> 11-26 13:32:06.727: ERROR/AndroidRuntime(10779): at> com.infineon.musicplayer4mNet.MusicPlayerActivity$2.run(MusicPlayerActivity.java:174)
> 11-26 13:32:06.727: ERROR/AndroidRuntime(10779): at> java.util.Timer$TimerImpl.run(Timer.java:284)
>>Try to cancel() the timer before releazing media player. Also try to avoid Timer/TimerTask, use Handler insteadpskink.
已经解决了问题的同学请留个言,分享一下!
- FATAL EXCEPTION: Timer-0 java.lang.IllegalArgumentException
- 关于AndroidRuntime: FATAL EXCEPTION: GLThread 10 java.lang.IllegalArgumentException问题
- Okhttp:Fatal Exception: java.lang.IllegalArgumentException: Unexpected char 0x4e00 at 25 in header v
- Okhttp:Fatal Exception: java.lang.IllegalArgumentException:unexpected char 0x0a at28 in header value
- FATAL EXCEPTION: Timer-0
- nested exception is java.lang.IllegalArgumentException: error at ::0 formal
- Exception in thread "main" java.lang.IllegalArgumentException
- nested exception is java.lang.IllegalArgumentException
- Exception in thread "Timer-0" java.lang.ExceptionInInitializerError 解决方法
- 错误提示:java.lang.Exception: java.lang.IllegalArgumentException
- FATAL EXCEPTION: Thread-7890 java.lang.ExceptionInInitializerError
- UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65
- nested exception is java.lang. IllegalArgumentException: error at ::0 formal unbound in pointcut
- UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added问题
- Exception in thread "main" java.lang.illegalArgumentException : illegal component position
- TED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added R
- Fatal Exception: java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
- Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.
- 告别“浮云” 享用云计算服务优势
- 公共云计算在国内市场前景更加广阔
- Web Service 监控磁盘文件
- 记一个FragmentActivity按Home键后强制关闭(FC)的报错
- 16.windbg-.frame、dt(切换局部上下文、查找结构体)
- FATAL EXCEPTION: Timer-0 java.lang.IllegalArgumentException
- Php设计模式之装饰者模式
- 全面认识Flex弹出窗口的方法
- http://acm.uestc.edu.cn/problem.php?pid=1480&cid=164
- what is Resource Files?
- 如何保持良好的心态
- Floyd算法
- ext 生成树形菜单的方法
- 前辈论C++缺点