开发者

Android Thread getState() throws Arrayindexoutofbounds 2.2.2

开发者 https://www.devze.com 2023-03-27 14:04 出处:网络
I just read from somewhere that calling getState()开发者_StackOverflow中文版 from a Thread in Android 2.2.2 sometimes causes this error. Is there a workaround for this?Currently my workaround is to se

I just read from somewhere that calling getState()开发者_StackOverflow中文版 from a Thread in Android 2.2.2 sometimes causes this error. Is there a workaround for this?


Currently my workaround is to set a boolean flag in the my custom Thread as false. I new the Thread, check if it is false, start it, then set the flag to be true.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号