How to load an ImageView by URL(json output) in Android?

url to display the image. I already displayed the 'text' contents using the following code

protected void onPostExecute(final Boolean success) {
 if (dialog.isShowing()) {
dialog.dismiss();
 }
 ListAdapter adapter = new SimpleAdapter(context, jsonlist,
 R.layout.list_item, new String[] { ID, TITLE,
  LOGO}, new int[] {
  R.id.flyer_id, R.id.title, R.id.logo
   });
 setListAdapter(adapter);
lv = getListView();   
  }

Answers


Try loading images using lazy loading concept.There is a good example mentioned in github. Try this link https://github.com/thest1/LazyList


Need Your Help

Shell problems when running scripts in Ubuntu as new user

python linux shell ubuntu dos

When I log into a particular Ubuntu Linux (10.04 64bit) host via SSH, I get a bash shell. From here I am able to run a particular Python script, with the executable bit set, that has this as the fi...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.