Looks like you are using too much memory:

java.lang.OutOfMemoryError: bitmap size exceeds VM budget

On Thu, Mar 24, 2011 at 11:43 AM, rishabh agrawal <android.rish...@gmail.com
> wrote:

> When i run my apps on API 8 then it run perfectly on emulator.But when
> i run my apps on API 10 then the unexpected error is occureced.
>
> The error are:-
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431): FATAL EXCEPTION: main
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{com.sai.s/com.sai.s.Outing}:
> android.view.InflateException: Binary XML file line #18: Error
> inflating class <unknown>
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 1647)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.ActivityThread.startActivityNow(ActivityThread.java:1487)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
> 127)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.LocalActivityManager.startActivity(LocalActivityManager.java:
> 339)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.widget.TabHost
> $IntentContentStrategy.getContentView(TabHost.java:654)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.widget.TabHost.setCurrentTab(TabHost.java:326)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:132)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:456)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.View.performClick(View.java:2485)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at android.view.View
> $PerformClick.run(View.java:9080)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.os.Handler.handleCallback(Handler.java:587)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.os.Handler.dispatchMessage(Handler.java:92)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.os.Looper.loop(Looper.java:123)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.ActivityThread.main(ActivityThread.java:3683)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> java.lang.reflect.Method.invoke(Method.java:507)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:839)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> dalvik.system.NativeStart.main(Native Method)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431): Caused by:
> android.view.InflateException: Binary XML file line #18: Error
> inflating class <unknown>
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.createView(LayoutInflater.java:518)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
>
> com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
> 56)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:408)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
>
> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
> 207)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.Activity.setContentView(Activity.java:1657)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> com.sai.s.Outing.onCreate(Outing.java:17)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 1611)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     ... 18 more
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431): Caused by:
> java.lang.reflect.InvocationTargetException
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> java.lang.reflect.Constructor.constructNative(Native Method)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> java.lang.reflect.Constructor.newInstance(Constructor.java:415)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.LayoutInflater.createView(LayoutInflater.java:505)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     ... 30 more
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431): Caused by:
> java.lang.OutOfMemoryError: bitmap size exceeds VM budget
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.Bitmap.nativeCreate(Native Method)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.Bitmap.createBitmap(Bitmap.java:477)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.Bitmap.createBitmap(Bitmap.java:444)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.Bitmap.createScaledBitmap(Bitmap.java:349)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:498)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:473)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:
> 336)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:
> 697)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.content.res.Resources.loadDrawable(Resources.java:1709)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.content.res.TypedArray.getDrawable(TypedArray.java:601)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.view.View.<init>(View.java:1951)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.widget.ImageView.<init>(ImageView.java:112)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     at
> android.widget.ImageView.<init>(ImageView.java:108)
> 03-25 00:05:31.067: ERROR/AndroidRuntime(431):     ... 33 more
>
>
>
>
> I am also
> <uses-sdk
>     android:minSdkVersion="10" />
>
> When i fix couse error in xml file which is line 10 then error also
> create
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to