My application also crashes somtimes when screen oritention change. I
don't have big image at all.
Do I need to some special code to handle screen orientation change?

On Jan 22, 1:07 am, blindfold <seeingwithso...@gmail.com> wrote:
> According to DDMS, my app leaks about 30 KB every time I quit and
> restart it. It may well be that this is caused by context references,
> but so far I have been unable to track it down. I think we desperately
> need some tool or a straightforward method to know exactly *what* is
> leaking *where* from run to run. With a pointer exception one at least
> knows *where* things go wrong, which is a great help, but with these
> context related memory leakage issues I have a very hard time
> isolating the culprits. As a workaround I now still kill my app's
> process in onDestroy() to prevent any leak from building up from run
> to run, but of course that runs against the spirit of Android. There
> is no leaking during a run of my app. So how can one effectively
> pinpoint and debug context related memory leaks that build up from run
> to run?
>
> Thanks!
>
> On Jan 22, 12:59 am, Romain Guy <romain...@google.com> wrote:
>
> > Hi,
>
> > You can forward them to the next activity using
> > Activity.onRetainNonConfigurationInstance(). You can also keep static
> > references to the drawables if you remove their callbacks in
> > onDestroy(). You can look at Home's source code for an example of the
> > latter or at the source code of Photostream
> > (code.google.com/p/apps-for-android) for an example of the former.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to