Hello developers,
 i have used the progress dialog in order to load the contents from
the server to list...But i feel that the progress bar small with
"loading..." message that is used in the android market browser ( in
dev phone) is better ... here is the problem iam facing..

1) i have a list of 100 names that has to be loaded on to the dev
phone.....

  I do as follows.....
    extends Activity implements ListView.OnScrollListener ...

     on every request i am getting 20 items and request is sent in
seperate thread and for the UI i am using progress dialog saying
"Wait..getting details...." and on getting the response
progress_bar.dismiss and setting to the adapter as  myList.setAdapter
(new MyListAdapter(this)) where MyListAdapter extends BaseAdapter....

2) Now i have 20 items in myList ... and the next request for 20
items  is sent when i reach the last list item by using the
onScrollStateChanged() using view.getLastVisiblePosition();

 similarly as explained above i send request in seperate thread(not
the UI  thread) and show the progress bar and dismiss it on the
response...

   But problem is on myList.setAdapter(new  MyListAdapter(this)) , the
list goes to the first item and the user(here i...) has to scroll back
again to the 20 items to see the list..

I did all the above procedure by referring the slowAdapter example in
the API DEMOS...
So, here is the problem ..
 1) how to show the next 20 items without going to the first item on
every second request ..

 2) i found that android market browser uses same scenario .. but i
dont know how to generate it..

 if u guys can help in this by referring me with some example or a
procedure to go on further it wouild appreciated ...

 Sorry for the long explanation... i hope that i have explained the
problem clearly .. if not kindly let me know, i shall do it again...

Thanks,
regards,
Sheik ahmed j
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to