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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:33:30+00:00 2026-06-15T01:33:30+00:00

I am setting an imageview to an image from the sd card. This runs

  • 0

I am setting an imageview to an image from the sd card. This runs smoothly on the android emulator 4.1, however on the emulator with android version 2.2 it returns a failed binder transaction. I find this very odd and can not figure out what the problem could be. The image image is set the following way:

               try{
                    String pathName = Environment.getExternalStorageDirectory().getPath() + "/Drop Insight/" + c.getString(iID) + ".png";
                    File path = new File(pathName);
                    if(path.exists()){
                        BitmapFactory.Options options = new BitmapFactory.Options();
                        Bitmap bm = BitmapFactory.decodeFile(pathName, options);
                        remoteView.setImageViewBitmap(R.id.ivwidgetimage, bm);
                    }
                    else{
                        remoteView.setImageViewResource(R.id.ivwidgetimage, R.drawable.defaultpic);
                    }
                }
                catch (Exception e) {
                    Log.e(DEBUG_TAG, "Failed", e);
                }

I have already tried options.inSampleSize = 4; but that did not solve the problem.

Thanks for any explanations and help.

11-25 19:22:04.992: D/dalvikvm(59): GC_EXPLICIT freed 3148 objects / 171272 bytes in 107ms
11-25 19:22:05.092: V/MediaProvider(216): /mnt/sdcard volume ID: 318247957
11-25 19:22:05.201: D/dalvikvm(282): GC_EXTERNAL_ALLOC freed 989 objects / 66344 bytes in 59ms
11-25 19:22:05.391: E/JavaBinder(59): !!! FAILED BINDER TRANSACTION !!!
11-25 19:22:05.401: D/dalvikvm(153): GC_EXPLICIT freed 4139 objects / 251136 bytes in 1278ms
  • 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-15T01:33:31+00:00Added an answer on June 15, 2026 at 1:33 am

    For code like yours, this usually means that the bitmap is too large. You are limited to 1MB per Binder-based IPC transaction. I am not aware that this limit was raised in Android 4.x, though that is certainly possible.

    Hence, make sure that setImageViewBitmap() uses a small enough Bitmap.

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

Sidebar

Related Questions

I am setting an image on the imageview picked from the gallery(camera album). If
I am having a problem with setting an ImageView image to an image which
What's the difference between setting background image in layout xml and setting it from
i am using an imageView to display an image. later i am setting a
By clicking a button i am picking up image from gallery and setting it
I would like to create an image gallery that get pictures from a url..this
Possible Duplicate: android imageView: setting drag and pinch zoom parameters I am very new
My question concerns this thread- How to refresh imageview in android Im too trying
I am setting a animation on the imageview public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
Setting the scene: My asp.net web application carries a version number which is incremented

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.