A oneway interface currently only applies when an IPC is needed to go through the interface -- that is when the callee and caller are running in different processes -- and is handled by Binder, the low-level IPC transport.
When two interfaces are in the same process, calls on them are just direct function calls into the other object, so there is no way to introduce asynchronicity. I'd like to do the user-space work to allow for async local interfaces, but don't know when that may happen. In the meantime, what we generally do is use a Handler on the receiving side to schedule the work in another thread so that all calls into the object are async. On Tue, Nov 25, 2008 at 4:20 AM, nimbus83 <[EMAIL PROTECTED]> wrote: > > Hi, > > for research reasons I want to study the possibility for asynchronous > communication between services in Android. Currently I'm using the > FLAG_ONEWAY option in the AIDL interface of the services. What I see > is that the asynchronous commmunication works fine when the services > are implemented in different APKs. > > If the services are implemented in the same APK, they communicate > synchronous although I have defined them with the attribute > android:process=":remote" and I've used the FLAG_ONEWAY option. > > Can anybody explain me why that happens? Is it possible for two > services to communicate asynchronously with each other through AIDL > interfaces using the FLAG_ONEWAY option? > > Best wishes, > Vladimir > > > > -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---