java.lang.OutOfMemoryError: bitmap size exceeds VM budget

by Jason Proctor » Thu, 03 Dec 2009 10:12:41 GMT

Sponsored Links
 MHO, if the device offers 50% more memory per application, but the 
bitmaps take up more than 50% more memory, then the net effect is a
stricter limitation.

i'm seeing some occasional OOMs only on Droid, and so i'm being extra
careful about recycling bitmaps and all that.

At 5:40 PM -0800 12/2/09, Romain Guy wrote:
>>> >

Other Threads

1. Launch other activity on pressing the on-screen camera/camcorder button?

Hi Abhi,

it is possible. You can do like this:

    private class ExpandedDialog extends Dialog {
        ExpandedDialog(Context context) {

        public boolean dispatchKeyEvent(KeyEvent event) {
            boolean down = event.getAction() == KeyEvent.ACTION_DOWN;
            switch (event.getKeyCode()) {
            case KeyEvent.KEYCODE_BACK:
                if (!down) {
                return true;
            return super.dispatchKeyEvent(event);

This example is inside the file in SDK. Here, this
class gets the event when the user presses the back button and execute his



2010/2/5 Abhi <>


2. Create vertical progress Bar from original source


I was looking for a way to create a vertical progress bar (volume
control). Unfortunately, There is no way to do that without
implementing a very specific view class.

I have some ideas about how to deal with this:
- Creating a subclass of SeekBar and try to rotate by 90 degrees when
overriding the onDraw method. I think this is a very dirty way to do
such thing. Specially because I have to implement  onTouch event to
avoid standard Seekbar touch event processing.. And this is not
simple. I could spend too much time without getting a good result.

- Extend View and try to make something like the progressBar. I got
the source for progressBar and tried to modify it. I had many problems
like this annotation: @android.view.RemotableViewMethod ! I deleted
this annotation (based on a post that I found I this group). The other
problem is that I can't inherit properties from View mother class like
mPaddingLeft, mScrollX, mScrollY!!! Is that normal. Another issue, i
don't have access to R.styleable! I found that it's deleted from the
SDK because it changes between builds.

Any one can help me please? I really want to make this scroll and give
it to everybody so that no one needs to look for it any more.

Best Regards


3. Fungame; Akinator

4. listen for the changes in file System

5. Bettercut


7. Quick contact integration