Title: how to fix error in bitmap size exceeds VM budget
Tags: android;exception;bitmap;size;out-of-memory
Question: i am working one application image uploading to sdcard i am scaling that sdcard saved into database some times one error is occurs bitmap size exceeds vm budget
ouput :
01-11 15:39:51.809: ERROR/AndroidRuntime(6214): Uncaught handler: thread main exiting due to uncaught exception
01-11 15:39:51.979: ERROR/AndroidRuntime(6214): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:384)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:397)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at com.fitzgeraldsoftware.shout.presentationLayer.Shout.onActivityResult(Shout.java:1653)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.app.Activity.dispatchActivityResult(Activity.java:3624)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3220)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3266)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.app.ActivityThread.access$2600(ActivityThread.java:116)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.os.Looper.loop(Looper.java:123)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at android.app.ActivityThread.main(ActivityThread.java:4203)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at java.lang.reflect.Method.invokeNative(Native Method)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at java.lang.reflect.Method.invoke(Method.java:521)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
01-11 15:39:51.979: ERROR/AndroidRuntime(6214):     at dalvik.system.NativeStart.main(Native Method)
how can fix the error please forward some solution thanks in advance

Here is the accepted answer: narasimha , I suppose may be this post will help you
android-strange-out-of-memory-issue
or this
java-lang-outofmemoryerror-bitmap-size-exceeds-vm-budget-android
or may be this
android-java-lang-outofmemoryerror
&amp; there are more questions already there

Here is another answer: You have a memory leak. You need to investigate to find it. This could be unreleased Bitmap or Cursor ...
Inspect the heap to see what kind of objects you have.
Comment for this answer: Make sure you cache them or you call `.release()`

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2011:00:01/11/11', 'FavoriteCount': 3.0, 'PostTypeId': 1, 'Tags': '<android><exception><bitmap><size><out-of-memory>', 'Title': 'how to fix error in bitmap size exceeds VM budget', 'ViewCount': 4067, 'id': 4656961, 'user_AboutMe': '<p>I work on mobile applications using Java, C#, VB and XML as the graphical front end. Very interested in using Web Services for mobile applications.</p>\n', 'user_AccountId': 93074.0, 'user_DisplayName': 'Narasimha', 'user_Reputation': 3772.0, 'user_Views': 875.0, 'user_id': 254790.0}}