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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:19:22+00:00 2026-06-01T05:19:22+00:00

I have successfully executed a project in a system,with Android 2.2… When i ran

  • 0

I have successfully executed a project in a system,with Android 2.2…

When i ran the project in other system,with same configuration and emulator options,it crashes…

The error log says:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myabc/com.myabc.Screen}: android.view.InflateException: Binary XML file line #11: Error inflating class

Can anybody provide me with a solution for this,as its a serious one for the application to be debugged in some other system…

The xml im inflating is :

<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/splashback" 
>
 <ImageView android:id="@+id/img6" android:src="@drawable/splash71" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_x="0dip" android:layout_y="0dip"></ImageView>
 <ImageView android:id="@+id/img5" android:src="@drawable/splash5" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_x="0dip" android:layout_y="0dip"></ImageView>
 <ImageView android:id="@+id/img4" android:src="@drawable/splash4" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_x="0dip" android:layout_y="0dip"></ImageView>
 <ImageView android:id="@+id/img3" android:src="@drawable/splash3" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_x="0dip" android:layout_y="0dip"></ImageView>
 <ImageView android:id="@+id/img2" android:src="@drawable/splash2" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_x="0dip" android:layout_y="0dip"></ImageView>
 <ImageView android:id="@+id/img1" android:src="@drawable/splash1" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_x="0dip" android:layout_y="0dip"></ImageView>
 <ImageView android:layout_width="wrap_content"  android:layout_height="wrap_content" android:id="@+id/img0" android:src="@drawable/screen8" android:layout_x="0dp" android:layout_y="0dp"></ImageView>
</AbsoluteLayout>

The complete stack trace says :

04-01 10:41:57.475: E/AndroidRuntime(430): FATAL EXCEPTION: main
04-01 10:41:57.475: E/AndroidRuntime(430): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myabc/com.myabc.Screen}: android.view.InflateException: Binary XML file line #11: Error inflating class <unknown>
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.os.Handler.dispatchMessage(Handler.java:99)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.os.Looper.loop(Looper.java:123)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.ActivityThread.main(ActivityThread.java:4627)
04-01 10:41:57.475: E/AndroidRuntime(430):  at java.lang.reflect.Method.invokeNative(Native Method)
04-01 10:41:57.475: E/AndroidRuntime(430):  at java.lang.reflect.Method.invoke(Method.java:521)
04-01 10:41:57.475: E/AndroidRuntime(430):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-01 10:41:57.475: E/AndroidRuntime(430):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-01 10:41:57.475: E/AndroidRuntime(430):  at dalvik.system.NativeStart.main(Native Method)
04-01 10:41:57.475: E/AndroidRuntime(430): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class <unknown>
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.createView(LayoutInflater.java:513)
04-01 10:41:57.475: E/AndroidRuntime(430):  at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
04-01 10:41:57.475: E/AndroidRuntime(430):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.Activity.setContentView(Activity.java:1647)
04-01 10:41:57.475: E/AndroidRuntime(430):  at com.myabc.Screen.onCreate(Screen.java:29)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-01 10:41:57.475: E/AndroidRuntime(430):  ... 11 more
04-01 10:41:57.475: E/AndroidRuntime(430): Caused by: java.lang.reflect.InvocationTargetException
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.widget.ImageView.<init>(ImageView.java:108)
04-01 10:41:57.475: E/AndroidRuntime(430):  at java.lang.reflect.Constructor.constructNative(Native Method)
04-01 10:41:57.475: E/AndroidRuntime(430):  at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.view.LayoutInflater.createView(LayoutInflater.java:500)
04-01 10:41:57.475: E/AndroidRuntime(430):  ... 22 more
04-01 10:41:57.475: E/AndroidRuntime(430): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.Bitmap.nativeCreate(Native Method)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.Bitmap.createBitmap(Bitmap.java:468)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.Bitmap.createBitmap(Bitmap.java:435)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:488)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:462)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.content.res.Resources.loadDrawable(Resources.java:1709)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
04-01 10:41:57.475: E/AndroidRuntime(430):  at android.widget.ImageView.<init>(ImageView.java:118)
  • 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-01T05:19:23+00:00Added an answer on June 1, 2026 at 5:19 am

    you are getting OutOfMemoryError:bitmap size exceeds VM budget. It seems that the bitmaps you are trying to use for ImageViews are taking huge amounts of memory. It is best if you keep lighter image files (scale them down by lowering resolution) at location from where you are getting your images. One less preferred way is to compress images one by one in memory and recycle() every time.

     private static Bitmap codec(Bitmap src, Bitmap.CompressFormat format,
                                        int quality) {
                ByteArrayOutputStream os = new ByteArrayOutputStream();
                src.compress(format, quality, os);
    
                byte[] array = os.toByteArray();
                return BitmapFactory.decodeByteArray(array, 0, array.length);
            }
    

    See this example at http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CreateBitmap.html

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

Sidebar

Related Questions

I have created many TestProjects with Visual-Studio-2010 Ultimate . All tests were executed successfully
I have successfully managed to get System.Speech.Synthesis to read English text in arbitrary voices
Hello and thank you for helping me with my project. So I have successfully
I got Calculator source code from google's android.git.kernel.org and successfully build the project without
Have successfully gotten the csrf middleware working in express as per previous SO questions.
I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)
I have successfully implemented interop beftween Win32 application and managed .Net dll as described
I have successfully upgraded an MFC application which was compiled with an old version
I have successfully used the Excel and Word addin templates in Visual studio 2008
I have successfully set up FILESTREAM on my SQL 2008 server; however I've noticed

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.