Wow, a response... thanks Cameron!

I did actually get it working in the end, but my solution was a bit of
a hack and yours goes further and fixes more problems.

Thanks again :-)

On Jun 23, 4:42 pm, "Cameron.M.Johnson" <[email protected]>
wrote:
> Hi Neilz,
>
> I have recently posted my solution to this problem. This is the first
> time i've posted a tutorial so if it doesn't make sense feel free to
> email me and I will try to clarify.
>
> http://wonton-games.blogspot.com/2010/06/lunar-lander-resume-game-wor...
>
> [email protected]
>
> Cameron
>
> On Jun 6, 11:31 am, Neilz <[email protected]> wrote:
>
> > This bug seems to be quite famous, if you do a Google search on it.
> > However, I still can't find the solution to it. After all this time,
> > and after several android version releases, the bug still exists and
> > no one has bothered to update it.
>
> > Here's one website which offers a solution (and I've seen the same
> > solution offered elsewhere...):
>
> >http://android-er.blogspot.com/2010/06/illegalthreadstateexception-in...
>
> > The solution is said to be to "move the code:
> >        thread = new MySurfaceThread(getHolder(), this);
> > ...from constructor of the SurfaceView to inside the surfaceCreated()
> > method.
>
> > Well I've tried it, and it just causes me further bugs, and before I
> > know it I've got the code into a right mess trying to figure it out.
>
> > If anyone can shed any light on this, and offer the code which sorts
> > this example out once and for all, I for one would be very
> > grateful :-)
>
> > ps. The bug is where you press the 'home' key during play, and then
> > return to the game, because you can't call thread().start twice.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to