aviod android memory leak

by venkat vakiti » Mon, 07 Dec 2009 14:04:10 GMT

Sponsored Links
 can someone tell me avoid android memory leak.how to remove resources
when the screen orientation changes?


aviod android memory leak

by Romain Guy » Mon, 07 Dec 2009 14:35:52 GMT

 Unless you are somehow keeping a reference to a Context via a static
field, resources are automatically discarded on orientation change.
You can read the following articles to help you:



Sponsored Links

Other Threads

1. How to compile only part of the platform

I'm working on some changes to the location framework, and I'm trying
to test my changes in the emulator. Near as I can tell, it seems like
every time I want to test my changes, I have to recompile the entire

This seems a little crazy since recompiling takes about an hour on my
machine, so I'm figuring there must be a better way that I simply
haven't found yet.

Does anybody know if there is a better way?



2. File Browser Integration


I want to integrate a file browser with my application. Does anyone
know where I could get the source code for a pretty good file browser?
(With the developer's permission of course). The more, the better...



3. userdata-qemu.img Help

4. A problem for arm-eabi-gdb to load sharedlibrary

5. How to set application background image easily?

6. Debugging a service

7. How do i run the emulator?