Is there an obvious reason why I am able to bind to the service, yet unable to access it's objects?
Thanks, J On Apr 4, 2010 9:01 AM, "Tunneling" <jasonalebl...@gmail.com> wrote: I have a Connection object that is instantiated by the ConnectionService. I bind to the service in order to access the Connection object and get information from a controller over TCP/IP. Again, I launch the service from a splash screen with success. I bind to the service in my main activity and can access it's objects(i.e. Connection) successfully. Then once I start a new activity from the main activity, I am able to successfully bind to the service. However, when I try to access the Connection object I get the following errors/warns. I would like to be able to connect to the object from multiple activities throughout the application to obtain up to date information from the controller. Any assistance is greatly appreciated. Here is the dump from LogCat. 04-04 08:25:18.068: INFO/ActivityManager(76): Process com.google.android.apps.maps:LocationFriendService (pid 15448) has died. 04-04 08:25:21.888: INFO/NotificationService(76): enqueueToast pkg=com.scs.haus callback=android.app.ITransientNotification$Stub $pr...@434d3868 duration=1 04-04 08:25:21.898: INFO/ActivityManager(76): Starting activity: Intent { cmp=com.scs.haus/.LightController (has extras) } 04-04 08:25:22.088: WARN/Resources(15436): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f070008} 04-04 08:25:22.098: WARN/Resources(15436): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f070009} 04-04 08:25:22.108: INFO/LightController(15436): Could not check serviceBinder.c.connected) 04-04 08:25:22.108: WARN/System.err(15436): java.lang.NullPointerException 04-04 08:25:22.108: WARN/System.err(15436): at com.scs.haus.LightController.onStart(LightController.java:111) 04-04 08:25:22.108: WARN/System.err(15436): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java: 1205) 04-04 08:25:22.108: WARN/System.err(15436): at android.app.Activity.performStart(Activity.java:3519) 04-04 08:25:22.118: WARN/System.err(15436): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2373) 04-04 08:25:22.118: WARN/System.err(15436): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417) 04-04 08:25:22.118: WARN/System.err(15436): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 04-04 08:25:22.118: WARN/System.err(15436): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 04-04 08:25:22.118: WARN/System.err(15436): at android.os.Handler.dispatchMessage(Handler.java:99) 04-04 08:25:22.118: WARN/System.err(15436): at android.os.Looper.loop(Looper.java:123) 04-04 08:25:22.118: WARN/System.err(15436): at android.app.ActivityThread.main(ActivityThread.java:4203) 04-04 08:25:22.118: WARN/System.err(15436): at java.lang.reflect.Method.invokeNative(Native Method) 04-04 08:25:22.118: WARN/System.err(15436): at java.lang.reflect.Method.invoke(Method.java:521) 04-04 08:25:22.118: WARN/System.err(15436): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) 04-04 08:25:22.118: WARN/System.err(15436): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 04-04 08:25:22.128: WARN/System.err(15436): at dalvik.system.NativeStart.main(Native Method) 04-04 08:25:22.128: INFO/LightController(15436): Could not check serviceBinder.c.connected) 04-04 08:25:22.128: WARN/System.err(15436): java.lang.NullPointerException 04-04 08:25:22.128: WARN/System.err(15436): at com.scs.haus.LightController.onResume(LightController.java:126) 04-04 08:25:22.128: WARN/System.err(15436): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java: 1225) 04-04 08:25:22.128: WARN/System.err(15436): at android.app.Activity.performResume(Activity.java:3559) 04-04 08:25:22.128: WARN/System.err(15436): at android.app.ActivityThread.performResumeActivity(ActivityThread.java: 2838) 04-04 08:25:22.128: WARN/System.err(15436): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java: 2866) 04-04 08:25:22.138: WARN/System.err(15436): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2420) 04-04 08:25:22.138: WARN/System.err(15436): at android.app.ActivityThread.access$2100(ActivityThread.java:116) 04-04 08:25:22.138: WARN/System.err(15436): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 04-04 08:25:22.138: WARN/System.err(15436): at android.os.Handler.dispatchMessage(Handler.java:99) 04-04 08:25:22.138: WARN/System.err(15436): at android.os.Looper.loop(Looper.java:123) 04-04 08:25:22.138: WARN/System.err(15436): at android.app.ActivityThread.main(ActivityThread.java:4203) 04-04 08:25:22.138: WARN/System.err(15436): at java.lang.reflect.Method.invokeNative(Native Method) 04-04 08:25:22.138: WARN/System.err(15436): at java.lang.reflect.Method.invoke(Method.java:521) 04-04 08:25:22.138: WARN/System.err(15436): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) 04-04 08:25:22.138: WARN/System.err(15436): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 04-04 08:25:22.148: WARN/System.err(15436): at dalvik.system.NativeStart.main(Native Method) 04-04 08:25:22.208: INFO/LightController(15436): Service Connected 04-04 08:25:22.478: INFO/ActivityManager(76): Displayed activity com.scs.haus/.LightController: 525 ms (total 525 ms) -- 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<android-developers%2bunsubscr...@googlegroups.com> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject. -- 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