Look for the words "caused by" in this message... It will tell you the problem. In this case it is a NullPointerException.
---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Sun, Jul 18, 2010 at 8:49 PM, Emmen Farooq <farooq.em...@gmail.com>wrote: > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.View.performClick(View.java:2344) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.View.onTouchEvent(View.java:4133) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.View.dispatchTouchEvent(View.java:3672) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:850) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > > com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1202) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.app.Activity.dispatchTouchEvent(Activity.java:1987) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > > com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1696) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.view.ViewRoot.handleMessage(ViewRoot.java:1658) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.os.Handler.dispatchMessage(Handler.java:99) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.os.Looper.loop(Looper.java:123) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.app.ActivityThread.main(ActivityThread.java:4203) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > java.lang.reflect.Method.invokeNative(Native Method) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > java.lang.reflect.Method.invoke(Method.java:521) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > dalvik.system.NativeStart.main(Native Method) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): Caused by: > java.lang.NullPointerException > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > com.friend.profile.onCreate(profile.java:92) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) > 07-19 07:37:05.706: ERROR/AndroidRuntime(198): ... 31 more > 07-19 07:37:05.846: DEBUG/dalvikvm(198): GC freed 3045 objects / > 218288 bytes in 121ms > 07-19 07:37:05.856: INFO/Process(53): Sending signal. PID: 198 SIG: 3 > 07-19 07:37:05.856: INFO/dalvikvm(198): threadid=7: reacting to signal 3 > 07-19 07:37:05.895: INFO/dalvikvm(198): Wrote stack trace to > '/data/anr/traces.txt' > 07-19 07:37:06.075: INFO/ARMAssembler(53): generated > scanline__00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at > [0x2826e0:0x282784] in 690344 ns > 07-19 07:37:06.086: INFO/ARMAssembler(53): generated > scanline__00000077:03515104_00001001_00000000 [ 64 ipp] (84 ins) at > [0x282788:0x2828d8] in 1623678 ns > 07-19 07:37:08.526: INFO/Process(198): Sending signal. PID: 198 SIG: 9 > 07-19 07:37:08.555: INFO/ActivityManager(53): Process com.friend (pid > 198) has died. > 07-19 07:37:08.555: INFO/WindowManager(53): WIN DEATH: Window{438b7aa0 > com.friend/com.friend.main paused=false} > 07-19 07:37:08.555: INFO/WindowManager(53): WIN DEATH: Window{438e2190 > com.friend/com.friend.profile paused=false} > 07-19 07:37:08.555: INFO/WindowManager(53): WIN DEATH: Window{438b8588 > com.friend/com.friend.interest paused=false} > 07-19 07:37:08.655: INFO/ActivityManager(53): Start proc com.friend > for activity com.friend/.profile: pid=226 uid=10022 gids={} > 07-19 07:37:08.965: DEBUG/dalvikvm(30): GC freed 263 objects / 10048 > bytes in 304ms > 07-19 07:37:09.076: INFO/jdwp(226): received file descriptor 20 from ADB > 07-19 07:37:09.166: DEBUG/dalvikvm(30): GC freed 35 objects / 1536 > bytes in 192ms > 07-19 07:37:09.176: DEBUG/ddm-heap(226): Got feature list request > 07-19 07:37:09.356: WARN/UsageStats(53): Something wrong here, didn't > expect com.friend to be resumed > 07-19 07:37:09.365: DEBUG/dalvikvm(30): GC freed 2 objects / 48 bytes in > 168ms > 07-19 07:37:09.646: WARN/Resources(226): Converting to string: > TypedValue{t=0x12/d=0x0 a=2 r=0x7f06000b} > 07-19 07:37:09.646: WARN/Resources(226): Converting to string: > TypedValue{t=0x12/d=0x0 a=2 r=0x7f06000c} > 07-19 07:37:10.286: WARN/InputManagerService(53): Got RemoteException > sending setActive(false) notification to pid 198 uid 10022 > 07-19 07:42:04.496: DEBUG/dalvikvm(102): GC freed 7423 objects / > 405208 bytes in 121ms > 07-19 07:42:53.606: DEBUG/AndroidRuntime(280): >>>>>>>>>>>>>> > AndroidRuntime START <<<<<<<<<<<<<< > 07-19 07:42:53.606: DEBUG/AndroidRuntime(280): CheckJNI is ON > 07-19 07:42:53.876: DEBUG/AndroidRuntime(280): --- registering native > functions --- > 07-19 07:42:53.885: INFO/jdwp(280): received file descriptor 18 from ADB > 07-19 07:42:54.165: DEBUG/ddm-heap(280): Got feature list request > 07-19 07:42:54.786: INFO/ActivityManager(53): Starting activity: > Intent { flg=0x10000000 cmp=com.friend/.main } > 07-19 07:42:54.805: DEBUG/AndroidRuntime(280): Shutting down VM > 07-19 07:42:54.805: DEBUG/dalvikvm(280): DestroyJavaVM waiting for > non-daemon threads to exit > 07-19 07:42:54.815: DEBUG/dalvikvm(280): DestroyJavaVM shutting VM down > 07-19 07:42:54.815: DEBUG/dalvikvm(280): HeapWorker thread shutting down > 07-19 07:42:54.825: DEBUG/dalvikvm(280): HeapWorker thread has shut down > 07-19 07:42:54.825: DEBUG/jdwp(280): JDWP shutting down net... > 07-19 07:42:54.835: DEBUG/jdwp(280): +++ peer disconnected > 07-19 07:42:54.835: INFO/dalvikvm(280): Debugger has detached; object > registry had 1 entries > 07-19 07:42:54.856: DEBUG/dalvikvm(280): VM cleaning up > 07-19 07:42:54.885: DEBUG/dalvikvm(280): LinearAlloc 0x0 used 676828 > of 4194304 (16%) > 07-19 07:43:10.405: INFO/ActivityManager(53): Starting activity: > Intent { cmp=com.friend/.interest } > 07-19 07:43:10.436: DEBUG/PhoneWindow(226): couldn't save which view > has focus because the focused view > com.android.internal.policy.impl.phonewindow$decorv...@43787a98 has no > id. > 07-19 07:43:10.436: DEBUG/PhoneWindow(226): couldn't save which view > has focus because the focused view > com.android.internal.policy.impl.phonewindow$decorv...@43787a98 has no > id. > 07-19 07:43:10.787: INFO/ActivityManager(53): Displayed activity > com.friend/.interest: 318 ms (total 362220 ms) > 07-19 07:43:13.705: INFO/ActivityManager(53): Starting activity: > Intent { cmp=com.friend/.profile } > 07-19 07:43:13.726: DEBUG/PhoneWindow(226): couldn't save which view > has focus because the focused view > com.android.internal.policy.impl.phonewindow$decorv...@437a0db8 has no > id. > 07-19 07:43:13.795: WARN/Resources(226): Converting to string: > TypedValue{t=0x12/d=0x0 a=2 r=0x7f06000b} > 07-19 07:43:13.806: WARN/Resources(226): Converting to string: > TypedValue{t=0x12/d=0x0 a=2 r=0x7f06000c} > 07-19 07:43:13.856: DEBUG/AndroidRuntime(226): Shutting down VM > 07-19 07:43:13.856: WARN/dalvikvm(226): threadid=3: thread exiting > with uncaught exception (group=0x4001aa28) > 07-19 07:43:13.856: ERROR/AndroidRuntime(226): Uncaught handler: > thread main exiting due to uncaught exception > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.friend/com.friend.profile}: > java.lang.NullPointerException > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.ActivityThread.access$2100(ActivityThread.java:116) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.os.Handler.dispatchMessage(Handler.java:99) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.os.Looper.loop(Looper.java:123) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.ActivityThread.main(ActivityThread.java:4203) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > java.lang.reflect.Method.invokeNative(Native Method) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > java.lang.reflect.Method.invoke(Method.java:521) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > dalvik.system.NativeStart.main(Native Method) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): Caused by: > java.lang.NullPointerException > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > com.friend.profile.onCreate(profile.java:92) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) > 07-19 07:43:13.876: ERROR/AndroidRuntime(226): ... 11 more > 07-19 07:43:13.886: INFO/Process(53): Sending signal. PID: 226 SIG: 3 > 07-19 07:43:13.886: INFO/dalvikvm(226): threadid=7: reacting to signal 3 > 07-19 07:43:13.966: INFO/dalvikvm(226): Wrote stack trace to > '/data/anr/traces.txt' > 07-19 07:43:23.727: WARN/ActivityManager(53): Launch timeout has > expired, giving up wake lock! > 07-19 07:43:23.758: WARN/ActivityManager(53): Activity idle timeout > for HistoryRecord{438caaf8 com.friend/.profile} > > > Apologises for posting this here , but im not good at deciphering > android , this is the recent log cat , kindly , tell what statement > corresponds to the error > > On Mon, Jul 19, 2010 at 7:46 AM, Mark Murphy <mmur...@commonsware.com> > wrote: > > On Sun, Jul 18, 2010 at 10:43 PM, Emmen Farooq <farooq.em...@gmail.com> > wrote: > >> you mean the tab thing should be a problem ? > > > > I mean that in computer programming, when you encounter a crash, you > > need to determine what is causing the crash. In Java, that usually > > involves examining the stack trace. In Android, you use adb logcat, > > DDMS, or the DDMS perspective in Eclipse to examine the stack trace. > > > > -- > > Mark Murphy (a Commons Guy) > > http://commonsware.com | http://github.com/commonsguy > > http://commonsware.com/blog | http://twitter.com/commonsguy > > > > _The Busy Coder's Guide to Android Development_ Version 3.1 Available! > > > > -- > > 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 > > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > > 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 > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > 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 android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en