Re: [android-developers] How to destroy an activity immediately?

2010-12-11 Thread Julie Andrews
On Sat, Dec 11, 2010 at 11:42 AM, Kenny Chang eric-...@163.com wrote:

 I try to call finish() in an activity in order to destroy the activity
 to free resources.
 But the Logcat shows it doesn't work immediately to call onDestroy
 instead of calling onPause and after a few seconds onDestroy is
 called.
 What I want is destory and finish the activity just after I call
 finish(). But the problem is that when I press Back button or call
 finish(), it doesn't free bitmap resources and destroy the activity
 immediately.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Julie
http://www.sirsainfo.in/ http://t
http://tradinglogically.blogspot.com http://tradinglogically.blogspot.com
http://vikitionary.blogspot.com
http://gandhi-the-man-of-millenium.blogspot.com/

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

[android-developers] How to destroy an activity immediately?

2010-12-10 Thread Kenny Chang
I try to call finish() in an activity in order to destroy the activity
to free resources.
But the Logcat shows it doesn't work immediately to call onDestroy
instead of calling onPause and after a few seconds onDestroy is
called.
What I want is destory and finish the activity just after I call
finish(). But the problem is that when I press Back button or call
finish(), it doesn't free bitmap resources and destroy the activity
immediately.

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