The problem is raised by the animations started in onCreate

On Dec 11, 8:22 pm, Zsolt Vasvari <[email protected]> wrote:
> I think the system will try everything to satisfy your memory request
> and that includes destroying any activities (your first one), still
> hanging around.  So I don't think you need to worry about this stuff
> at all.
>
> On Dec 11, 8:13 pm, Kenny Chang <[email protected]> wrote:
>
>
>
>
>
>
>
> > The first activity is the welcome activity, which lets users choose a
> > choice to start a new activity.
> > If the second activity go straight to onDestroy, the heap resources
> > that the second activity holds
> > can be so much that causes OUT_OF_MEMORY ERROR when user choose a
> > choice to start a new activity in the
> > first activity.So...
>
> > On Dec 11, 6:49 pm, Indicator Veritatis <[email protected]> wrote:
>
> > > So what? Why do you need it to go straight to onDestroy? Or rather, I
> > > should ask, why do you THINK you need it to go
> > > straight to onDestroy()? For I doubt your need is genuine.
>
> > > On Dec 10, 10:12 pm, Kenny Chang <[email protected]> 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.- Hide quoted text -
>
> > - Show quoted text -

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

Reply via email to