Re: [android-beginners] Closing the activity completely

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 4:53 AM, Revathi K J Ramanan
 wrote:
> I have a back button in my activity window on right corner of the
> title bar.
>
> I want to kill the activity completely on clicking the close button.
> Can I reuse the same function and will it have any major effect?

Just call finish(), please.

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

_Android Programming Tutorials_ Version 2.9 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Closing the activity completely

2010-08-02 Thread Revathi K J Ramanan
Hi,

Whenever the memory needs to be reclaimed, the process is being killed
by ActivityManagerService in killPidsForProcess.

I have a back button in my activity window on right corner of the
title bar.

I want to kill the activity completely on clicking the close button.
Can I reuse the same function and will it have any major effect?

Please help me out in this.

Thanks in advance.

Regards,
Revathi K J ramanan

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en