This is difficult for me to diagnose because the Log doesn't provide
the offending code line that indicates what caused it.  Running the
app in the Emulator seems to work OK until I press Home or Back from
the Main Activity. Using Back between the activities in the program
seems to work OK, it only fails at the Main. I don't have the app
finished yet so I haven't loaded it to a device yet.

The Log says there was a null pointer exception so I would like to
find why.  The log points to the android routines (and I don't appear
to have the source for those routines in the emulator-most but not all
and these are refering to those I can't access). The log gives up at
one point and says "11 more".  It would be nice to see the remaining
11 in the hopes that one of them points to the line in my code that
caused the offense.

I'm looking for ideas on ways to find the error and hopefully cure it.

Here's the log at the point where Home was pressed:

11-13 14:36:56.875: DEBUG/AndroidRuntime(621): Shutting down VM
11-13 14:36:56.875: WARN/dalvikvm(621): threadid=3: thread exiting
with uncaught exception (group=0x4001b188)
11-13 14:36:56.875: ERROR/AndroidRuntime(621): Uncaught handler:
thread main exiting due to uncaught exception
11-13 14:36:57.175: ERROR/AndroidRuntime(621):
java.lang.RuntimeException: Unable to stop activity
{com.pedestrian_sw.justchecking/
com.pedestrian_sw.justchecking.JustChecking}:
java.lang.NullPointerException
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.ActivityThread.performStopActivityInner(ActivityThread.java:
3185)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.ActivityThread.handleStopActivity(ActivityThread.java:
3230)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.ActivityThread.access$2500(ActivityThread.java:119)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1838)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.os.Handler.dispatchMessage(Handler.java:99)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.os.Looper.loop(Looper.java:123)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.ActivityThread.main(ActivityThread.java:4310)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
java.lang.reflect.Method.invoke(Method.java:521)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
dalvik.system.NativeStart.main(Native Method)
11-13 14:36:57.175: ERROR/AndroidRuntime(621): Caused by:
java.lang.NullPointerException
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.Activity.performStop(Activity.java:3808)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     at
android.app.ActivityThread.performStopActivityInner(ActivityThread.java:
3182)
11-13 14:36:57.175: ERROR/AndroidRuntime(621):     ... 11 more
11-13 14:36:57.485: INFO/Process(58): Sending signal. PID: 621 SIG: 3
11-13 14:36:57.496: INFO/dalvikvm(621): threadid=7: reacting to signal
3
11-13 14:36:57.665: INFO/dalvikvm(621): Wrote stack trace to '/data/
anr/traces.txt'
11-13 14:36:59.335: DEBUG/dalvikvm(547): GC freed 160 objects / 6392
bytes in 920ms
11-13 14:39:54.035: INFO/Process(621): Sending signal. PID: 621 SIG: 9
11-13 14:39:54.095: INFO/ActivityManager(58): Process
com.pedestrian_sw.justchecking (pid 621) has died.
11-13 14:39:54.155: INFO/WindowManager(58): WIN DEATH: Window{43bc6690
com.pedestrian_sw.justchecking/
com.pedestrian_sw.justchecking.JustChecking paused=false}
11-13 14:39:54.294: WARN/InputManagerService(58): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@43ad6970
11-13 14:39:54.425: ERROR/gralloc(58): [unregister] handle 0x4429e0
still locked (state=40000001)

-- 
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