Android ListView in Activity getting Refreshed on Changing Orientation

Posted by y ramesh rao on Stack Overflow See other posts from Stack Overflow or by y ramesh rao
Published on 2010-04-07T05:09:35Z Indexed on 2010/04/07 5:13 UTC
Read the original article Hit count: 201

Filed under:
|

I have Activity with ListView inside it and in the onCreate method of the Activity I have code for populating the Data of the ListView this Data is a server based and so populating includes calling Network URLs. I have the ArrayAdapter of the ListView in the Same Activity Class.

Now the Issue I'am facing is that, in Rest all scenarios my Activity is behaving in a proper way but when the Orientation [ Portrait to Landscaped or other way round] is taking place the Data is Getting lost and Newer Data calls are Required to Populate the Same Old Data now this is something that is not intended out the code how should I deal with it.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-listview