Android Question CustomListview Rotate to Landscape

m643

Member
Licensed User
Longtime User
Hi,

I'm reading Item's and images from an sqlite database and put them into the customlistview. When I rotate the screen to landscape mode, it reads the items and images again and this action takes about 10 seconds.

I'm wondering what the best way is to get optimal performance when rotating the screen.

Thanks
 

eps

Expert
Licensed User
Longtime User
Is the ListView defined globally?

I guess you're populating the list, then rotating and re-populating the list again, from the DB?
 
Upvote 0

m643

Member
Licensed User
Longtime User
Is the ListView defined globally?

I guess you're populating the list, then rotating and re-populating the list again, from the DB?

Exactly, it re-populate the lists again from the db after rotating the screen. The listview is defined globally.
 
Upvote 0
Top