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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:41:53+00:00 2026-05-16T06:41:53+00:00

I have the following layout in XML (splashscreen.xml): <?xml version=1.0 encoding=utf-8?> <FrameLayout xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/frmLayout

  • 0

I have the following layout in XML (splashscreen.xml):

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:id="@+id/frmLayout" android:layout_width="fill_parent"
   android:layout_height="fill_parent">
    <ImageView
       android:id="@+id/splash"
       android:src="@drawable/splash"
       android:layout_width="fill_parent" android:layout_height="fill_parent"
       android:scaleType="fitXY" />
</FrameLayout>

SplashScreen.java:

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splashscreen);
    // more code...
}

When I try to execute it in Android 1.5 (executes correctly in all other versions) I get these errors:

08-16 19:24:04.569: ERROR/AndroidRuntime(1002): Uncaught handler: thread main exiting due to uncaught exception
08-16 19:24:04.619: ERROR/AndroidRuntime(1002): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.project/com.project.SplashScreen}: android.view.InflateException: Binary XML file line #5: Error inflating class java.lang.reflect.Constructor
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.ActivityThread.access$1800(ActivityThread.java:112)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.os.Handler.dispatchMessage(Handler.java:99)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.os.Looper.loop(Looper.java:123)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.ActivityThread.main(ActivityThread.java:3948)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at java.lang.reflect.Method.invokeNative(Native Method)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at java.lang.reflect.Method.invoke(Method.java:521)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at dalvik.system.NativeStart.main(Native Method)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002): Caused by: android.view.InflateException: Binary XML file line #5: Error inflating class java.lang.reflect.Constructor
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.createView(LayoutInflater.java:512)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:309)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.Activity.setContentView(Activity.java:1626)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at com.project.SplashScreen.onCreate(SplashScreen.java:34)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     ... 11 more
08-16 19:24:04.619: ERROR/AndroidRuntime(1002): Caused by: java.lang.reflect.InvocationTargetException
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.widget.ImageView.<init>(ImageView.java:103)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at java.lang.reflect.Constructor.constructNative(Native Method)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.view.LayoutInflater.createView(LayoutInflater.java:499)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     ... 22 more
08-16 19:24:04.619: ERROR/AndroidRuntime(1002): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/title_bar_shadow.9.png from drawable resource ID #0x7f020021
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.content.res.Resources.loadDrawable(Resources.java:1641)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.content.res.TypedArray.getDrawable(TypedArray.java:548)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.widget.ImageView.<init>(ImageView.java:113)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     ... 26 more
08-16 19:24:04.619: ERROR/AndroidRuntime(1002): Caused by: java.io.FileNotFoundException: res/drawable/title_bar_shadow.9.png
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.content.res.AssetManager.openNonAssetNative(Native Method)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.content.res.AssetManager.openNonAsset(AssetManager.java:392)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     at android.content.res.Resources.loadDrawable(Resources.java:1634)
08-16 19:24:04.619: ERROR/AndroidRuntime(1002):     ... 28 more
08-16 19:25:39.511: ERROR/AndroidRuntime(1045): Uncaught handler: thread main exiting due to uncaught exception

Line 5 corresponds to ImageView line. Do you have any idea why my program executes in all Android versions except 1.5?

Thanks!

  • 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-05-16T06:41:54+00:00Added an answer on May 16, 2026 at 6:41 am

    A couple of related threads: http://groups.google.com/group/android-developers/browse_thread/thread/2f10922ac233c6df/5f67d345da4f0ccc?show_docid=5f67d345da4f0ccc

    Android 2.2 SDK breaks compatibility with older phones

    Not understanding how to use different density images for 1.6+

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

Sidebar

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.