I haven't looked at the example but from what you said, it seems like a threading problem. Maybe you disable the start button when it is clicked and have the other thread send a message to enable it again when it is finished.
- Moazzam Http://moazzam-khan.com On Aug 14, 8:34 am, JP <[email protected]> wrote: > Just to clear this up a bit: > > It is working, it just crashes if you press home and then start it > again. > > Also the periodically appearing message mentioned above is only shown > in the log which you can access by starting (in a cmd / power shell) > the command "adb logcat". > > Maybe somebody could try those two things out an let me know. > > On Aug 14, 1:43 pm, cellurl <[email protected]> wrote: > > > not that this helps, but I am a total newbie and I got lunarlander to > > work. > > Try some of the other examples perhaps.... Sorry I am not more help. > > > On Aug 13, 1:41 pm, JP <[email protected]> wrote: > > > > Hi everybody, > > > > I build Lunar Lander (from the android-1.5 directory) and launched it > > > in the emulator. > > > > When i press the home-button while playing, the homescreen is > > > displayed if i start lunar lander again (to get back to the game) it > > > crashes with "E/AndroidRuntime( 711): > > > java.lang.IllegalThreadStateException: Thread already started.". > > > (Sidenote: Leaving with the back-button an returning seems to work.) > > > > Is that a flaw in the example, or am I doing something wrong? > > > > Also while it is running when started normally adb logcat shows the > > > following message periodically: > > > "W/SurfaceFlinger( 568): executeScheduledBroadcasts() skipped, > > > contention on the client. We'll try again later..." > > > > Is this another flaw in the example (maybe incorrect handling of the > > > surface?) > > > > Thanks for any enlightenment on those questions. > > > > ps: tried googling, but the surfaceFlinger thing only seems to comes > > > up as a sideeffect in crash logs for the emulator. > > > > -- jp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

