On Wed, Jul 13, 2011 at 4:36 PM, Ab Caballero <a...@mac.com> wrote: > My onServiceConnected() code looks like this: > > public void onServiceConnected(ComponentName className, IBinder > service) { > > Log.i("INFO", "Service bound "); > mBoundService = ((MainService.LocalBinder)service).getService(); > > } > > I'm assuming that the binder is mBoundService, which is of type > MainService. Once I do this, I'm not sure how to pass TRIP_INFO to it. > My knowledge of binders is slim.
Implement a method on MainService.LocalBinder named hereIsYourAllImportantTripInfo() (or whyAreYouMakingThisSoHard(), if you prefer) that takes TRIP_INFO as a parameter. Call this method. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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