Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6338667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:29:30+00:00 2026-05-24T19:29:30+00:00

Currently, I have json data of several twitter feeds that I parse to fill

  • 0

Currently, I have json data of several twitter feeds that I parse to fill my list. I have an object, “image” that contains the url of the users icon that I want to set as the ImageView to in the list. I am having trouble trying to figure out how I can take the url and load the image in the Imageview for each row. Here is the code:

public void getTweets(String selection) {
        String formatedcat = selection.toLowerCase();
        ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>();
        JSONObject json = JSONfunctions
                .getJSONfromURL("http://example.com/tweet.php");

        try {

            JSONArray category = json.getJSONArray(formatedcat);
            for (int i = 0; i < category.length(); i++) {
                HashMap<String, String> map = new HashMap<String, String>();
                JSONObject c = category.getJSONObject(i);

                map.put("id", String.valueOf(i));

                map.put("name",
                        c.getString("fullName") + "\n(#" + c.getString("name")
                                + ") ");
                map.put("text",
                        c.getString("text") + "\n - "
                                + c.getString("timestamp"));
                mylist.add(map);


            }
        } catch (JSONException e) {
            Log.e("log_tag", "Error parsing data " + e.toString());
        }

        ListAdapter adapter = new SimpleAdapter(this, mylist, R.layout.list,

                new String[] { "name", "text"}, new int[] { R.id.item_title,
                        R.id.item_subtitle});

        setListAdapter(adapter);



        final ListView lv = getListView();
        lv.setTextFilterEnabled(true);

    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:29:30+00:00Added an answer on May 24, 2026 at 7:29 pm

    How to display image from URL on Android

    See this question. Look very practical to me. Do that showing of the image in the getView() method where you populate the list and instantiate the child views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that received JSON data from the server. Currently when I
I have a page that generates json data from several fields and I want
I currently have one project that currently contains multiple packages. These packages make up
I currently have this: $.getJSON('test.json', function(data) { var items = []; $.each(data, function(key, val)
I currently have a JSON object on my page which gets built up as
Using the Twitter Search API I have attempted to download JSON data from a
I have a web application that allows a client to request several image thumbnails
currently I have the following which parses a json api.. import simplejson import urllib2
Currently have a drop down menu that is activated on a hover (from display:none
I currently have a XSLT 2.0 Stylesheet that I am trying to remove empty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.