Ups sorry! I had not searched for information about this issue before to write here, but I have found that this is a well known bug.
I found the solution in this thread: http://groups.google.es/group/android-developers/browse_thread/thread/f7f2917df6742447/19fe74830f2ac97a?lnk=gst&q=lunar+lander#19fe74830f2ac97a <http://groups.google.es/group/android-developers/browse_thread/thread/f7f2917df6742447/19fe74830f2ac97a?lnk=gst&q=lunar+lander#19fe74830f2ac97a> 2010/9/16 KrcK --- <[email protected]> > Hi all, > > I have a problem with the Lunar lander sample. I am trying to add a > configuration part to this game using a PreferenceActivity. > > So to do this, I have created a LunarPreferenceActivity and I have added it > to AndroidManifest.xml. > > On the other hand I have added a new menu item to call this new Actitvity, > and it is called from LunarLander. > > startActivity(new Intent(this, LunarPreferenceActivity.class)); > > The problem is when I am in the PreferenceActivity and I press the return > button. This produces the following error. > > 09-16 09:35:20.887: ERROR/AndroidRuntime(223): Uncaught handler: thread > main exiting due to uncaught exception > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): > java.lang.IllegalThreadStateException: Thread already started. > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): at > java.lang.Thread.start(Thread.java:1322) > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): at > com.example.android.lunarlander.LunarView.surfaceCreated(LunarView.java:864) > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): at > android.view.SurfaceView.updateWindow(SurfaceView.java:454) > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): at > android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:189) > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): at > android.view.View.dispatchWindowVisibilityChanged(View.java:3782) > 09-16 09:35:20.906: ERROR/AndroidRuntime(223): at > android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:692) > > Could anyone explain me why happens and how could I fix it? > > Thank you and regards! > -- 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

