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

  • Home
  • SEARCH
  • 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 9058571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:45:25+00:00 2026-06-16T14:45:25+00:00

I am trying to display the profile image from a twitter list. I have

  • 0

I am trying to display the profile image from a twitter list. I have a listview being used with Async task. My ImageView is being done dynamically in a drawable from the URL. It seems to work fine on the 2.3.3, but the image does not show on 4.0. I ImageView has to work on 4.0. I’m puzzled.
Here is from my adapter:

    Tweet o = tweets.get(position);
               Drawable drawable = LoadImageFromUrl.LoadImageFromWebOperations(o.profile_image_url);
               image.setImageDrawable(drawable);

The method that converts to URL to drawable is this:

public static Drawable LoadImageFromWebOperations(String url) {
        try {
            Log.i("URL", url);
            InputStream is = (InputStream) new URL(url).getContent();
            Drawable d = Drawable.createFromStream(is, "src name");
            return d;
        } catch (Exception e) {
            return null;
        }
    }

And my xml layout for my list items (tweets)is here:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dip" xmlns:android="http://schemas.android.com/apk/res/android">

 <ImageView
    android:id="@+id/profile_image"
     android:layout_width="48dip"
    android:layout_height="48dip"
    android:layout_gravity="top|left"
    android:layout_margin="6dip"
    android:contentDescription="Profile Image"
    android:src="@drawable/ic_launcher"/>

<!-- Name -->
<TextView
    android:id="@+id/name"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/profile_image"
    android:paddingBottom="1dip"
    android:textColor="#0598DD"
    android:textSize="14dip"
    android:textStyle="bold" />

<!-- Screen name -->   
<TextView
    android:id="@+id/screen_name"
    android:layout_below="@id/profile_image"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_toRightOf="@+id/name"
    android:paddingBottom="1dip"
    android:textColor="#ffffff"
    android:textSize="14dip"
    android:textStyle="italic" />

 <!-- Tweet -->
<TextView
    android:id="@+id/text"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/name"
    android:paddingBottom="1dip"
    android:textColor="#ffffff"
    android:textSize="16dip"
    android:textStyle="bold" />

<!-- date -->

<TextView
    android:id="@+id/time_stamp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/text"
    android:paddingBottom="3dip"
    android:textColor="#0598DD"
    android:textSize="14dip"
    android:textStyle="italic" />
</RelativeLayout>
  • 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-06-16T14:45:26+00:00Added an answer on June 16, 2026 at 2:45 pm

    Nobody responded. I fixed this by using the UrlImageViewHelper:

    UrlImageViewHelper.setUrlDrawable(image, o.profile_image_url);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to display an image from a URL in a UIImageView and I'm
I have an issue in that I am trying to simply display an image
I'm trying to display set of data which have retrieved from the sql database
Im trying to download profile_image_url images (.jpg) from twitter and display them in my
I am trying to display an image which is fetched from the database as
I'm trying to make a user profile page. I have done some hard work
I am trying to display points from a user row on a profile page.
So I am trying to grab member profile links from a forum and display
I'm trying to display Facebook profile pictures on my site, but don't want to
trying to display data only after variables have been set. $(document).ready(function () { function

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.