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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:38:40+00:00 2026-05-25T00:38:40+00:00

I would like to read a drawable image from an external package into a

  • 0

I would like to read a drawable image from an external package into a bitmap. For example, in package com.test.images I have an image called image1.png under the drawable-hdpi folder. I would like to read that image into a Bitmap object from another package, for example com.test.reader. Can someone give a solution?

I can use the getResourcesForApplication(packageName) to get access to the resources of the external package, but the resources object I get only has a getDrawable method; I want to get a Bitmap for the image.

Thanks

  • 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-25T00:38:40+00:00Added an answer on May 25, 2026 at 12:38 am

    Once you get the Drawable object you’ll have to convert it to a Bitmap Object.

    Refer to this question to see one possible way to achieve this.

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

Sidebar

Related Questions

I would like to read strings into Matlab from an excel file ID =
I would like to read some data from a stream I have using std::getline
I would like to get into programming with C# and Silverlight. I have read
I would like to read the value from the e.Item.DataItem into a string but
I would like to read a EAN-13 bar-code from an image in C. I
I would like to read coordinates from an from an input file. An example
I would like to read geographic data (logitude/latitude) from two sources into one Javascript
I would like to read a text file and input its contents into an
I would like to read the xsi:type attribute from the current node in a
I would like to read an xml file. I' ve found an example which

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.