tag:blogger.com,1999:blog-89878749563391212.post2022893057012153166..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: IllegalThreadStateException in LunarLander, a sample Android code from GoogleUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-89878749563391212.post-65902027403697596482011-05-07T01:08:02.933-07:002011-05-07T01:08:02.933-07:00hello unanimouse, Thx.
hello Steve,
when the ap...hello unanimouse, Thx.<br /><br />hello Steve,<br /> <br />when the app run, the SurfaceView displayed, surfaceCreated() of MySurfaceView will be called, and then call thread.start() to start the thread.<br /><br />myThreadSurfaceView.onDraw() inside run() of MySurfaceThread re-draw the canvas.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-5296055543260755242011-05-06T14:26:24.292-07:002011-05-06T14:26:24.292-07:00Hello,
I know this is an old post, but what exact...Hello,<br /><br />I know this is an old post, but what exactly triggers the thread to run or te canvas the surface view to invalidate.<br /><br />I am trying something similar in my own app. but nothing get drawn, furthermore, I tried throwing an exception in the surfacecreated event but it's not getting fired.Stevehttps://www.blogger.com/profile/00734886407840686680noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-28768825633880114592011-05-06T11:08:26.249-07:002011-05-06T11:08:26.249-07:00Thanks for the simple fix! All of the other solut...Thanks for the simple fix! All of the other solutions seemed much more difficult and wrong.unanimousehttps://www.blogger.com/profile/09398804611390146453noreply@blogger.com