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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:33:33+00:00 2026-06-13T22:33:33+00:00

I have an android app that runs good in Android 2 , but when

  • 0

I have an android app that runs good in Android 2 , but when I try to run it on Android 4,it crashes and throws exceptions. Bellow is the Log I get

11-04 16:50:01.015: E/AndroidRuntime(753): FATAL EXCEPTION: main 11-04
 16:50:01.015: E/AndroidRuntime(753): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{com.example.huda.elklob/com.example.huda.elklob.options}:
 android.view.InflateException: Binary XML file line #22: Error
 inflating class android.widget.Button 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.app.ActivityThread.access$600(ActivityThread.java:123) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.os.Handler.dispatchMessage(Handler.java:99) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.os.Looper.loop(Looper.java:137) 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 android.app.ActivityThread.main(ActivityThread.java:4424) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 java.lang.reflect.Method.invokeNative(Native Method) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 java.lang.reflect.Method.invoke(Method.java:511) 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 dalvik.system.NativeStart.main(Native Method) 11-04 16:50:01.015:
 E/AndroidRuntime(753): Caused by: android.view.InflateException:
 Binary XML file line #22: Error inflating class android.widget.Button
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.view.LayoutInflater.createView(LayoutInflater.java:606) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.view.LayoutInflater.rInflate(LayoutInflater.java:739) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.view.LayoutInflater.rInflate(LayoutInflater.java:742) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.view.LayoutInflater.inflate(LayoutInflater.java:489) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.view.LayoutInflater.inflate(LayoutInflater.java:396) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.view.LayoutInflater.inflate(LayoutInflater.java:352) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.app.Activity.setContentView(Activity.java:1835) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 com.example.huda.elklob.options.onCreate(options.java:17) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.app.Activity.performCreate(Activity.java:4465) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
 11-04 16:50:01.015: E/AndroidRuntime(753):     ... 11 more 11-04
 16:50:01.015: E/AndroidRuntime(753): Caused by:
 java.lang.reflect.InvocationTargetException 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 java.lang.reflect.Constructor.constructNative(Native Method) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 java.lang.reflect.Constructor.newInstance(Constructor.java:417) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.view.LayoutInflater.createView(LayoutInflater.java:586) 11-04
 16:50:01.015: E/AndroidRuntime(753):   ... 25 more 11-04 16:50:01.015:
 E/AndroidRuntime(753): Caused by: java.lang.OutOfMemoryError 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)
 11-04 16:50:01.015: E/AndroidRuntime(753):     at
 android.content.res.Resources.loadDrawable(Resources.java:1935) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.content.res.TypedArray.getDrawable(TypedArray.java:601) 11-04
 16:50:01.015: E/AndroidRuntime(753):   at
 android.view.View.<init>(View.java:2785) 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 android.widget.TextView.<init>(TextView.java:449) 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 android.widget.Button.<init>(Button.java:108) 11-04 16:50:01.015:
 E/AndroidRuntime(753):     at
 android.widget.Button.<init>(Button.java:104) 11-04 16:50:01.015:
 E/AndroidRuntime(753):     ... 28 more

Can anyone help?

  • 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-13T22:33:34+00:00Added an answer on June 13, 2026 at 10:33 pm

    Yech. Next time, please format your LogCat dump as “code” as opposed to “quote”. At least the line breaks will be in their rightful places.

    That said, the relevant bit is here:

    Caused by: java.lang.OutOfMemoryError
    11-04 16:50:01.015: E/AndroidRuntime(753): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    11-04 16:50:01.015: E/AndroidRuntime(753): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
    

    Out of memory error while decoding a bitmap. Make it a smaller bitmap.

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

Sidebar

Related Questions

i have an app that runs perfectly on android 1.6+, but admob ads are
In my Android app, I have a class that extends Thread that runs when
I have developed a business app that runs fine on android phone. What do
I have an app that runs for a while, but needs to be reset
i have developed an app that runs perfectly fine on the simulator but when
I have a android project that runs fine on the vm, but when I
I have an app that runs fine using android phonegap 1.2 and jqm 1.0,
I have an android app which runs a foreground service and while that service
I am new to android development, and I have an app that when run
I have a phonegap app on android that runs in a remote server. On

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.