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:

 http://www.curious-creature.org/2009/02/07/track-memory-allocations-on-android/ 
 http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/ 



>


Sponsored Links


Other Threads

1. Installing and running app on HTC Incredible

I have followed all of the instructions on the android devloper's
website for developing on a device but I have been unsuccessful.  I
have an HTC Incredible android phone and I set it to debug mode, then
I added the code ' android:debuggable="true" 'to my manifest.xml
file.  I downloaded the latest Windows drivers and when I plugged in
the Incredible to my USB port, there were 2 disk drives recognized on
the Incredible and then it asked for the ADB driver, which I pointed
to the downloaded drivers folder.  I got a Windows error saying it
could not install the hardware.

Can anyone help me???

-- 

2. Bad images when rotating 854x480 resolution

We are facing a problem with 854x480 resolution, using Android 1.6
This problem can be replicated on emulator.
Our target device has 854x480 resolution (NOT 480x854).
If we use  default orientation, which is in our case 854x480, there is
no problem.
If we turn by 90 degrees, which is then 480x854, then we have missing
lines, jumping lines and jumping fonts.
This problem can be seen with standard Android menus but easier in
Aldiko (however, to be clear: it is not dependent on the application,
it is just easier to recognize)
This failure DOES NOT occur when you use 480x854 as default resolution/
orientation.
Could it be a problem in the accuracy of the OGLES library of Android?

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Bantuin ngeroot yah

4. ad ga c flash player untuk eclair???

5. Find the Activity object associated with a Tab in a TabActivity

6. Problem getting a linearlayout to be scrollable

7. Get data to android app from mysql server