LOGCAT OUTPUT: 07-13 15:23:23.954: E/AndroidRuntime(655): FATAL EXCEPTION: main 07-13 15:23:23.954: E/AndroidRuntime(655): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.paulinrio.radio/com.paulinrio.radio.OnAir}: java.lang.NullPointerException 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2503) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:651) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabHost.setCurrentTab(TabHost.java:323) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:129) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:453) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.view.View.performClick(View.java:2408) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.view.View$PerformClick.run(View.java:8816) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.os.Handler.handleCallback(Handler.java:587) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.os.Handler.dispatchMessage(Handler.java:92) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.os.Looper.loop(Looper.java:123) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-13 15:23:23.954: E/AndroidRuntime(655): at java.lang.reflect.Method.invokeNative(Native Method) 07-13 15:23:23.954: E/AndroidRuntime(655): at java.lang.reflect.Method.invoke(Method.java:521) 07-13 15:23:23.954: E/AndroidRuntime(655): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 07-13 15:23:23.954: E/AndroidRuntime(655): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-13 15:23:23.954: E/AndroidRuntime(655): at dalvik.system.NativeStart.main(Native Method) 07-13 15:23:23.954: E/AndroidRuntime(655): Caused by: java.lang.NullPointerException 07-13 15:23:23.954: E/AndroidRuntime(655): at com.paulinrio.radio.OnAir.checkmediastate(OnAir.java:302) 07-13 15:23:23.954: E/AndroidRuntime(655): at com.paulinrio.radio.OnAir.onCreate(OnAir.java:99) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 07-13 15:23:23.954: E/AndroidRuntime(655): ... 18 more
On Fri, Jun 29, 2012 at 8:05 PM, Justin Anderson <magouyaw...@gmail.com>wrote: > Can anyone tell me what am I doing wrong. >> > > Well, for starters, you didn't really give us any information to help you > solve the problem. But, for the crash, take a look at the logcat output... > It usually gives some pretty good information about the cause of a crash. > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Fri, Jun 29, 2012 at 8:20 AM, Tushar Lal <tush...@gmail.com> wrote: > >> Hi, >> >> I have created a library project containing a service. When I first build >> it and install it on my phone it works fine, but when I create the second >> build using the same library project and install it on my phone, the first >> build works fine but the second one crashes. Also when I run the second >> build and I go into (Setting>Application>Running Application) the service >> is running of the first application. That might explain the reason of >> crashing of second build. >> >> Can anyone tell me what am I doing wrong. >> >> Regards: >> Tushar >> +91-9711577561 >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Regards: Tushar +91-9711577561 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en