On Tue, Jul 26, 2011 at 8:11 AM, Mohd Hareef <toar...@gmail.com> wrote:
> Actually my aim is the client app which is going to use this service, they
> have to just instantiate the service wrapper in OnCreate() and call the aidl
> method directly.

This will not work.

> So i created the service wrapper in that way only.
> May i know why there is a delay in calling
> "ServiceConnection.onServiceConnected"?

Because that is the way that it is written. bindService() is not a
blocking call, just like startService() is not a blocking call,
startActivity() is not a blocking call, sendBroadcast() is not a
blocking call, etc.

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

Android Training in NYC: http://marakana.com/training/android/

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

Reply via email to