title: Best practice to handle many data from cloud database into Listview?
body: <p>I would like to ask for suggestions or for the best practice on <strong>how to handle a lot of data that is loaded from database(cloud/php scripts) to the android listview</strong>. I don't have any idea on how to deal with this matter.</p>
  
  <p><strong>To elaborate the scenario:</strong> lets say i have a database of list of students in a first year level. Let's say a hundred of them. In my current method, I just query all of them (showing the progressdialog) and wait until the data is all downloaded and displayed it in the listview(closing the progressdialog). I know this not the best way to do it since you need to consider bigger data.</p>
  
  <p>I tried to download and test this: <a href="https://code.google.com/p/android-amazing-listview/source/checkout" rel="nofollow">https://code.google.com/p/android-amazing-listview/source/checkout</a>  from google team but still i don't get the bigger picture since in the example the data is all static.</p>
  
  <p>What I want to do is:</p>
  
  <ul>
  <li><p>while downloading the data from server, a little progressbar will appear in the header of the list view and once finished it will disappear.</p></li>
  <li><p>Let's say i have 100 data results, but in my listview I want to display the top 10 and once scrolled down adding another 10 and so-on.</p></li>
  </ul>
  
  <p><strong>I just want to know the proper implementation or handling of large data in listview for android.</strong></p>
  
  <p>I would really really appreciate all your suggestions and comments with my problem.</p>
  
  <p>Thanks Chkm8,</p>