On Sat, Jul 16, 2011 at 7:15 AM, DCA <[email protected]> wrote: > however, do applications with multiple processes share the same memory > space, or is AIDL required to communicate between components running > in a separate process, even though they are both part of the same > application?
They do not share the same memory space, by definition. > Can an application > "launch" additional processes arbitrarily, or is there some Manifest > configuration necessary? If you are just trying to run some ARM binary that you copied onto the device, forking a process via standard Java should work. Though an ARM binary will only work on ARM devices, not x86 (e.g., Google TV) devices. If you are expecting a Dalvik VM and Android components to be in the other process, you have to add an android:process attribute to the manifest to indicate that such-and-so component should run in another process. Neither of this is a good idea, because extra processes take up extra RAM. A well-written Android application usually uses zero processes (i.e., is not running), and only uses one process when the user asks for it to run. > Also, what about filesystem access - i.e. can > each process in an single application access each others' files? They will all run as the same user account and have the same "home directory" (i.e., getFilesDir()). > My > end goal is to be able to isolate and possibly terminate misbehaving > plug-ins that have been loaded at runtime using OSGi. IMHO, getting OSGi to work well without custom firmware may be difficult. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- 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

