tinyang wrote:
> I'm trying to figure out a java.lang.RuntimeException problem in my
> app.  When I look at the logcat, it will show something like this:
>  
> 12-19 09:29:38.055: WARN/dalvikvm(716): threadid=3: thread exiting with
> uncaught exception (group=0x4000fe70)
> 12-19 09:29:38.065: ERROR/AndroidRuntime(716): Uncaught handler: thread
> main exiting due to uncaught exception
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{test.app/test.app.CameraPreview}:
> java.lang.NullPointerException
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.ActivityThread.access$1800(ActivityThread.java:112)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.os.Looper.loop(Looper.java:123)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.ActivityThread.main(ActivityThread.java:3948)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> dalvik.system.NativeStart.main(Native Method)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716): Caused by:
> java.lang.NullPointerException
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> test.app.CameraPreview.onCreate(CameraPreview.java:42)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
> 12-19 09:29:38.075: ERROR/AndroidRuntime(716):     ... 11 more
> I want to see the "11 more" lines in the error logging.  How do I view
> those?

I don't think you can, and you probably should not need to. Your error
is on line 42 of CameraPreview.java.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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

Reply via email to