android - Populate BaseAdapter from web -


i've json array this: [{"usename":"user", "user_pic":"picture", "photo":"http://hfhfhfhhfh.jpg", "timestamp":"10-09-10"} {"username":"user2", ..........}]
i've 10 jsonobject in array, , want use populate stream with:
avatar - nickname
photo
timestamp
stream of application, want have latest post of other user.
how can populate stream? think use baseadapter correct?

thank much!

yes need baseadapter or arrayadapter depending on implementation. have overwritye default implementation show list items want them displayed. may check listview examples here. http://developer.android.com/resources/samples/apidemos/src/com/example/android/apis/view/index.html.

basically might want in situation is.

  1. have progress dialog or other indicator before start downloading json.
  2. download json.
  3. parse , convert list of objects[probably arraylist]
  4. pass list on listview adapter. main issue , need overwrite baseadapter create own adapter. here example google search http://developerlife.com/tutorials/?p=327. may need search more example if need more help.
  5. once pass list adapter need close progress dialog.

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -