Re: [android-developers] When is the appropriate time to use separate processes?

2010-11-04 Thread Mark Murphy
On Thu, Nov 4, 2010 at 5:36 PM, Matt Quigley  wrote:
> Hi all.  I have read all about having separate processes for different
> Application components, and how to use them.  I am curious, what are
> some appropriate use cases for when an application should actually use
> separate processes?

I'm not sure there are any for the vast majority of Android apps.

> It seems to me, the main advantage to using
> separate processes is to make the different portions of your app more
> easily killable by the OS.

No offense, but taking up double memory to allow the OS to more easily
kill half of it is like chopping down trees to give you more paper for
recycling. There might be valid reasons for using more than one
process -- though I don't know of any -- but I feel fairly confident
this is not one of them.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
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


Re: [android-developers] When is the appropriate time to use separate processes?

2010-11-04 Thread Frank Weiss
I think the easily killable angle is rather odd. What kind of an app do you
have in mind?

I've used the Android Intent architecture to hand off tasks to activities in
other apps/processes. For example, to take a picture, open a web page, or
dial a number, my apps don't have to implement that code, they just send an
Intent and let the Android OS find an activity to do it.

-- 
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