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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:30:38+00:00 2026-05-17T22:30:38+00:00

I have a bitmap that I want to display in my Android app. This

  • 0

I have a bitmap that I want to display in my Android app. This works fine for platforms with version number greater than 1.5 but not for 1.5. When executing the line below an exception is thrown stating that the resource couldn’t be found.

Bitmap bmp = BitmapFactory.decodeResource(mApplicationContext.getResources(), R.drawable.arrow);

I have put the bitmap in all density-folders (hdpi, mdpi, ldpi) and scaled them according to the documentation (the mdpi-bitmap is 25×25 pixels and the ldpi-bitmap size 75% of the mdpi-bitmap size and the hdpi-bitmap size 150% of the mdpi-bitmap size).
Any idea what is wrong here?
Thanks,
Christian

  • 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-17T22:30:39+00:00Added an answer on May 17, 2026 at 10:30 pm

    Try adding /res/drawable directory and copy /res/drawable-midp pictures to it.

    Android 1.5 does not support resolution independence.

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

Sidebar

Related Questions

i have simple url of image, i want to display that image in Bitmap
I have 52 images that is coming from web URL.I want to display this
I have a Bitmap that I want to enlarge programatically to ~1.5x or 2x
I'm making Android app that has this database in it: public void onCreate(SQLiteDatabase db)
I have a sprite that holds a bitmap data. I want to give the
I have three array, like this, that contains my bitmap images: static unsigned char
I want to have a virtual dpad in an Android game so that when
I have a bitmap that contains 24x24 icons. I would like to use it
So I have a source bitmap that is fairly large, so I shrink it
I have a function that writes a bitmap string to a browser, which then

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.