Another option is to add a *ResultReceiver* ( https://developer.android.com/reference/android/os/ResultReceiver.html ) as a parameter to your AIDL function. This parameter can be used as a callback. The client (i.e. the one calling the AIDL function) will implement the parameter's *onReceiveResult* function, the server will call the *send* method on it.
On Saturday, April 18, 2015 at 2:18:03 AM UTC-4, abhi wrote: > > Is there any mechanism to receive a callback from service through AIDL > without any client intervention.Already i have implemented a two way > communication through AIDL, but still i couldnt figure out how to sent a > callback without a client call.Any insights into this will be very helpfull. > -- 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 --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.