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 7549269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:54:34+00:00 2026-05-30T09:54:34+00:00

I have gone through every tutorial to display an image on an android phone

  • 0

I have gone through every tutorial to display an image on an android phone from a URL. I am trying to bind an imageview object to the HTTP url but I keep getting a unable to inflate imageview class error:

02-16 23:32:50.204: E/AndroidRuntime(499): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.DBResults/com.DBResults.ContactView}: android.view.InflateException: Binary XML file line #82: Error inflating class Imageview

Theo code in my java file:

 ....
 setContentView(R.layout.contact_view);
 ImageView imageView = (ImageView)findViewById(R.id.ImageView1); 
 imageView.setImageDrawable(createDrawableFromURL("http://savagelook.com/misc/sl_drop2.png"));
 ....
 private Drawable createDrawableFromURL(String urlString) {
    Drawable image = null;
try {
    URL url = new URL(urlString);
    InputStream is = (InputStream)url.getContent();
    image = Drawable.createFromStream(is, "src");
} catch (MalformedURLException e) {
    // handle URL exception
    image = null;
} catch (IOException e) {
    // handle InputStream exception
    image = null;
}

return image;
}

My XML file looks like this (line 82 is the opening imageview tag):

<LinearLayout android:orientation="horizontal"
    android:layout_width="fill_parent" android:layout_height="wrap_content"
    android:gravity="left" android:background="@drawable/white">
    <Imageview  android:id="@+id/ImageView1" 
                android:layout_height="wrap_content" 
                android:layout_width="fill_parent" /> 
     </LinearLayout>
  • 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-30T09:54:35+00:00Added an answer on May 30, 2026 at 9:54 am

    it’s a typo. it should be ImageView!

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

Sidebar

Related Questions

I have downloaded sample code from Apple Center.I also have gone through following question:
I have gone through all the post in every forum, but wasn't successful in
I am trying to understand relationships fully, and have gone through alot of tutorials.
Have gone through hibernate api specification on FlushMode but didn't get the exact difference.
I have gone through their developer guide but haven't been able to find a
I have gone through different questions/articles on Message Brokers and ESBs(Even on stackoverflow). Still
I have gone through following question. Convert NSString to NSDictionary It is something different
I have gone through this and this , but the question I am asking
I have gone through all the msdn stuff for getting started with the SDK
Over the years as I have gone through school and been working in the

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.