Your error is here: 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by: java.lang.NullPointerException 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at com.mobilevideoeditor.moved.EditGalleryView.init_phone_video_grid(EditGalleryView.java:78)
Line 78 of EditGalleryView.java is throwing an NPE. On Tue, Jul 27, 2010 at 5:04 PM, Victoria Busse <victoriasarabu...@gmail.com > wrote: > Hi there, > > I have a huge problem testing my app on my HTC Wildfire. It was working > fine until recently, but now I always get a force close error when I run or > debug a new version of the app. > > When I try to run the app on the emulator it still works, when I disconnect > the phone from the PC, the app also runs on the phone (including all > changes)... I was working on a xml file when this happened. If someone could > help me out here, that would be great...because this is really weird and I > really don't know what I should do now... > > Thanks in advance... > > This is the logcat output I get from the phone: > > 07-28 00:54:56.707: ERROR/AndroidRuntime(14315): Uncaught handler: thread > main exiting due to uncaught exception > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.GalleryView}: > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.EditGalleryView}: > java.lang.NullPointerException > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.access$2200(ActivityThread.java:126) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.os.Handler.dispatchMessage(Handler.java:99) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.os.Looper.loop(Looper.java:123) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.main(ActivityThread.java:4603) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > java.lang.reflect.Method.invokeNative(Native Method) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > java.lang.reflect.Method.invoke(Method.java:521) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > dalvik.system.NativeStart.main(Native Method) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by: > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.mobilevideoeditor.moved/com.mobilevideoeditor.moved.EditGalleryView}: > java.lang.NullPointerException > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.startActivityNow(ActivityThread.java:2411) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:648) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.widget.TabHost.setCurrentTab(TabHost.java:320) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.widget.TabHost.addTab(TabHost.java:213) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > com.mobilevideoeditor.moved.GalleryView.onCreate(GalleryView.java:33) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): ... 11 more > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): Caused by: > java.lang.NullPointerException > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > com.mobilevideoeditor.moved.EditGalleryView.init_phone_video_grid(EditGalleryView.java:78) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > com.mobilevideoeditor.moved.EditGalleryView.onCreate(EditGalleryView.java:62) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) > 07-28 00:54:56.727: ERROR/AndroidRuntime(14315): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544) > > -- > 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 > -- //Nick Richardson //richardson.n...@gmail.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 android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en