Hello Mark,
Thank you for your reply..You mention Processes are
cached for potential reuse.. What does it means...for which
circumstance process can reuse.. If I will start the same activity it
will start again from Oncreate..
Thanks & regards
Arindam Ghosh
On Mon, Aug 23, 2010 at 5:11 PM, Mark Murphy <[email protected]> wrote:
> On Mon, Aug 23, 2010 at 4:30 AM, arindam <[email protected]> wrote:
>> I have one doubt about back button. If one
>> activity is running on foreground and if I press
>> back button then it will destroy the activity. Now my question is is
>> destroy and kill a process is different?
>
> Yes.
>
>> cause if I open DDMS I can see same process is running.
>
> Processes are cached for potential reuse.
>
>> Only if I stop
>> that process in DDMS then only
>> it disappear. Is that process will take any memory space after
>> pressing back button..
>
> Yes, but that is Android's responsibility, not yours. Make sure you
> are not leaking any memory yourself (e.g., static data members,
> threads that do not terminate), and Android will take care of the
> process.
>
> --
> 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.1 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
--
Thanks & regards
Arindam Ghosh
--
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