Sunday, October 6, 2013

[android-developers] AIDL service connection, how to detect if service is never connected?

I have an activity that binds to an AIDL service. 

The way the AIDL service is constructed, sometimes a IBinder is never returned..
When that happens onServiceConnected is not called.  Seems obvious.

But is there a way to detect that has happened?   Is there another callback I am missing?

Or is it better to always return a IBinder and give the user a method to determine if things on the service end are messed up.

Otherwise the activity sits their happily for something that never arrives.

Thank you.
-Mike

--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate