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.
精彩评论