Hi tinyang, If you're using eclipse, you can put a debug point at line 42 in CameraPreview and see what object is null that you're trying to call a method on.
Steve On Sat, Dec 19, 2009 at 3:15 PM, tinyang <[email protected]> wrote: > OK, thanks. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Lance Nanek > Sent: Saturday, December 19, 2009 12:26 PM > To: Android Beginners > Subject: [android-beginners] Re: logcat question > > You are already seeing them. The more refers to the lines that are just > duplicates of the lines that the RuntimeException exception above the > NullPointerException has already printed. > > On Dec 19, 11:44 am, "tinyang" <[email protected]> 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:2 > > 268) > > 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:22 > > 84) > > 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:7 > > 82) > > 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:2 > > 231) > > 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? > > > > Thanks. > > -- > 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]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/18/09 > 19:38:00 > > -- > 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]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- 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

