Thursday, July 21, 2011

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

On Thu, Jul 21, 2011 at 1:26 AM, animeshsi <animeshsi15@gmail.com> wrote:
> The issue is that I need to call the service methods as soon as it is
> connected.
> So, Is there any way by which I can execute the functions of service
> JUST AFTER binding is complete ?

Execute those "functions" in onServiceConnected().

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

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

--
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