Wednesday, July 20, 2011

Re: [android-developers] Help needed for dealing with NullPointerException when calling functions on a service just after binding it

On Tue, Jul 19, 2011 at 12:21 PM, animeshsi <animeshsi15@gmail.com> wrote:
> Is there some way by which I can make sure that the service binding is
> complete before any access is made to functions provided by the
> service ?

Don't try using the Binder until onServiceConnected() is called.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment