1

I am new to android & exploring it.I need to load image of User dynamically in my list shown below

list of Users!

I use one static image to show as user image from my resource folder. this list is dynamic & get change as my location get change but only when i refresh it.

AddObjectToList(jFan_Data.getString("uniqid").toString(),R.drawable.ic_add, jFan_Data.getString("name"), jFan_Data.getString("distance"));

on click of the list item need to display the complete profile of user. i succeed to show complete profile on click i need to show image of user here as well

user_profile!

How i get the data from php(Please gone through) -> android List View having jsonObject

now how i get images of users from my php server... would greatly appreciate any sample code,scripts, and pointers to where I could find more information to better understand the inner working. Also, pretty much interested to know how i use other framework or is there are better frameworks to do what I want to, I am happy to learn about that!!!

Community
  • 1
  • 1
Rupesh Yadav
  • 12,096
  • 4
  • 53
  • 70
  • Both your questions have been answered on this site. Get data from php server: http://stackoverflow.com/questions/8416132/how-do-i-get-this-json-data-from-php-server-in-android Lazy loading: http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview and http://stackoverflow.com/questions/2912054/lazy-load-images-on-listview-in-androidbeginner-level. – THelper Dec 15 '11 at 09:35
  • Tanks a lot @THelper [this](http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview)! worked thanks again for your valuable respons!!! :) – Rupesh Yadav Dec 16 '11 at 14:20
  • This might help. [Stackoverflow question](http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012) [Lazy list](https://github.com/thest1/LazyList) – R.daneel.olivaw Dec 15 '11 at 09:30

0 Answers0