On Wed, Nov 26, 2008 at 2:31 AM, nimbus83 <[EMAIL PROTECTED]> wrote: > When I wrote my message yesterday, I had two services in the same APK. > They were BOTH defined in the AndroidManifest.xml with the attribute > android:process=":remote". I expected that the services will run in > different processes, because I thought android:process=":remote" will > automatically place each service in its own process. The FLAG_ONEWAY > option didn't work while the services were communicating with each
other. The name given there is the name of the process to run in, so you are having them both run in the same process named ":remote". > In this way the asynchronous communication between services in own > processes in Android is possible. I hope the fact each service run in > separate process does not have enormous and destructive impact on > Android's performance and runtime environment. It does. DO NOT DO THIS. NEVER run things in their own process, unless they truly need to be isolated from another process. Getting the side-effect of asynchronous communication through IPC is far from a good reason to do this. Why are you wanting to run the service in another process? Why not just run all of this stuff in the same process? Then you don't need aidl at all, you can just do direct Java calls between all of your classes through whatever Java API you want, and you can introduce asynchronicity at any point through normal programming mechanisms -- threads, handlers, whatever. You may be making this far harder than it really needs to be. -- 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

