0

In short, in my application has ListView with data from SQLite and images from http url, there is also a GridView as well with data from SQLite and images from http url. Appears all is well! but when scrolling long application loaded slowly Tell me how to optimize my application? plz

cjp2600
  • 31
  • 1
  • 6

2 Answers2

4

This is pretty much explained in the Android Training site by Using a Background Thread and Holding View Objects in a View Holder. If you want more explanation, you should watch this talk by Romain Guy and Chet Haase - The World of ListView

chip
  • 1,779
  • 1
  • 22
  • 34
0

If you have used some cursor try to close them with

cursor.close;

and at the end close also the database

myDb.close;

because every time you scroll the cursors repeat every action that you made they do

Matteo Cardellini
  • 876
  • 2
  • 17
  • 41