This might help. http://groups.google.com/group/android-developers/browse_thread/thread/db839840e8f20dc1/ed7737e3e3587881
Al. On Jan 29, 3:16 am, "Sean E. Russell" <[email protected]> wrote: > I have a strange problem where, if the screen is rotated while a > dialog is displayed, an exception gets thrown every time. It happens > _only_ during this single dialog, and the exception is thrown outside > of the app (there's no trace information that touches any of my > code). It happens in both the emulator and the G1. > > I'm wondering if anybody has any suggestions about how I might analyze > this problem, or what might be the cause. The stack trace, for what > it is worth, follows. Is this something I can work around, or is it > an Android bug? > > Thanks! > > E/AndroidRuntime( 353): Uncaught handler: thread main exiting due to > uncaught exception > E/AndroidRuntime( 353): java.lang.RuntimeException: Unable to start > activity ComponentInfo{net.ser1.timetracker/ > net.ser1.timetracker.Tasks}: java.lang.NullPointerException > E/AndroidRuntime( 353): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2140) > E/AndroidRuntime( 353): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 2156) > E/AndroidRuntime( 353): at > android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java: > 3086) > E/AndroidRuntime( 353): at android.app.ActivityThread.access > $1900(ActivityThread.java:112) > E/AndroidRuntime( 353): at android.app.ActivityThread > $H.handleMessage(ActivityThread.java:1584) > E/AndroidRuntime( 353): at android.os.Handler.dispatchMessage > (Handler.java:88) > E/AndroidRuntime( 353): at android.os.Looper.loop(Looper.java: > 123) > E/AndroidRuntime( 353): at android.app.ActivityThread.main > (ActivityThread.java:3742) > E/AndroidRuntime( 353): at > java.lang.reflect.Method.invokeNative(Native Method) > E/AndroidRuntime( 353): at java.lang.reflect.Method.invoke > (Method.java:515) > E/AndroidRuntime( 353): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:739) > E/AndroidRuntime( 353): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) > E/AndroidRuntime( 353): at dalvik.system.NativeStart.main > (Native Method) > E/AndroidRuntime( 353): Caused by: java.lang.NullPointerException > E/AndroidRuntime( 353): at > android.app.Activity.restoreManagedDialogs(Activity.java:850) > E/AndroidRuntime( 353): at > android.app.Activity.performRestoreInstanceState(Activity.java:793) > E/AndroidRuntime( 353): at > android.app.Instrumentation.callActivityOnRestoreInstanceState > (Instrumentation.java:1171) > E/AndroidRuntime( 353): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2117) > E/AndroidRuntime( 353): ... 12 more > > --- SER --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

