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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:34:07+00:00 2026-06-06T17:34:07+00:00

Once in a while i get the error message Bitmap size exceeds VM budget.

  • 0

Once in a while i get the error message “Bitmap size exceeds VM budget”. It happens when i open 20 activities one after another where each of the activities holds a 500×300 PNG picture. I didn’t have the problem when i implemented the pictures in my XML layouts with android:background=”@drawable/xxxxxxxx”.

The error first occured when i implemented the pictures in my Java code.

<ImageView
android:id="@+id/ImVpic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

ImageView pic;
pic = (ImageView)findViewById(R.id.ImVpic);
pic.setImageResource(R.drawable.picture);

How can i get rid of that error? What is missing in my code? I mean it actually works, but from time to time it throws that error which is really annoying.

  • 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-06T17:34:09+00:00Added an answer on June 6, 2026 at 5:34 pm

    This is very common question you see on SO. It seems while loading the image, available memory is low. Make sure you are not keeping for long references for images, which allows dalvik to reclaim the memory from unused images (or) objects.

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

Sidebar

Related Questions

Every once and a while I get this error in IE when making an
In this very simple code example, messages get lost every once in a while.
I get this error message: Exception in thread main java.lang.ArithmeticException: BigInteger not invertible. This
<compilation debug=false targetFramework=4.0> I get this error while that line is red: Parser Error
every once and a while my application throws a connection to database lost error.
webview in android loads more than once while loading the url. Below is the
Once in a while you stumble over a technical article where creating and declaring
I've been using Click Once for longer while now and it was easy to
Im using Visual studio 2008. Every once in a while files that exist in
Once I've, while working with VS, I saw several screens popping up in a

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.