OnOrientationChanged leaks in ListView

by Alok Kulkarni » Wed, 16 Jun 2010 20:18:07 GMT


Sponsored Links
 Hi,
I am having a ListView with custom ArrayAdapter.For defining a list item i
have my own class ListItem which stores all info including list item images,
and other textual info in it.
I have handled orientation change in onRetainNonConfigurationInstance() in
which i save the array of ListItems in another object.. and when the
Activity is recreated i reassign the array of list items to those of the
activity. Then i create an ArrayAdapter accordingly .I use adb shell
procrank and find out that i am leaking memory everytime i change
orientation. I have debugged through and found out that the leak is in
arraylist of list items itself.What wrong am i doing here ?
Thanks ,
Alok.

--



Other Threads

1. ImageView appearing above soft keyboard

Hi,

We're using a bunch of ImageView windows in an application using SDK
1.5 and when the soft keyboard window appears the ImageView windows
are appearing ontop of it, thus blocking out some of the letters on
the keyboard.

When creating the LayoutParams we're only using the following:
WindowManager.LayoutParams.TYPE_APPLICATION,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE

It seems like there should be something in the WindowManager to
configure this but I am unable to find it.

Any suggestions?
Thanks!

--~--~---------~--~----~------------~-------~--~----~

2. using java.sql instead of android.database

Can I use the standard java.sql API to query a sqlite database on
android?  I am working on an app that shares some code between the
client side (android) and server side (apache tomcat servlet) and I am
puzzled why the android documentation includes java.sql but no
information on how to use it to access android database with it.

Thanks,
Pete

--~--~---------~--~----~------------~-------~--~----~

3. startup sequence, how do i get from main to launcher.OnCreate()

4. Formatting text size and text color in ListView();

5. Is using google maps driving direction legal for android app for ADC II?

6. Hello Tutorials - Gallery Example

7. Downloading files from the browser