At some point the dev tools started automatically appending a version
specifier to your resource names if your resource names used
specifiers that Android 1.5 didn't understand. Android 1.5 doesn't
understand the density specifiers, they were introduced after it was
released.

Therefore drawable-hdpi, drawable-mdpi, and drawable-ldpi are actually
now considered drawable-hdpi-v4, drawable-mdpi-v4, and drawable-ldpi-
v4. Android 1.5 does understand the version specifier, so it won't
read something with -v4 on the end, only being API level 3.

You can just change your drawable-mdpi to drawable anyway. The
documentation says that drawable is considered medium density class by
default. Once the mdpi specifier is removed, the new build tools will
stop appending -v4 to it, which will let Android 1.5 read it again.

On Mar 17, 7:36 pm, acr <[email protected]> wrote:
> I just changed the min SDK version from 3 to 4, if someone has a
> solution I'd love to still support android 1.5 like it did before.
>
> On Mar 17, 6:39 pm, acr <[email protected]> wrote:
>
> > before my app update, i upgraded my eclipse sdk to android 2.2 (see
> > article below) I was using drawable-hdpi drawable-mdpi drawable-ldpi
> > folders and NOT a drawable folder and it used to work fine in android
> > 1.5. now it won't work with 1.5 with just these folders. does anyone
> > know of a work around without having to reintroduce the drawable
> > folder? thanks
>
> >http://androidforums.com/developer-101/146259-1-5-compatibility-issue...
>
> > On Mar 17, 4:48 pm, acr <[email protected]> wrote:
>
> > > Hi all, i am running into a problem where I am getting force closes on
> > > devices running android 1.5, it used to run fine in 1.5 and I issued
> > > an update which had nothing to do with the graphics (changed a few
> > > menu setting within the app) now my application icon is the default
> > > android icon(not my icon) and i get
>
> > > I get the first set of errors when I install the app
> > > and I get the second set of errors when I try to open the app which
> > > references the splash screen logo:
>
> > > this app works perfectly on 1.6 and higher and used to run on 1.5 I
> > > compared the manifests and slpashscreen xml files and they are still
> > > identical.
>
> > > please help, im pulling my hair out here Thank you
>
> > > I get this when I install the app
> > > 03-17 20:28:04.679: WARN/ResourceType(575): No package identifier when
> > > getting value for resource number 0x7f060000
> > > 03-17 20:28:04.721: WARN/ResourceType(575): No package identifier when
> > > getting value for resource number 0x7f060001
> > > 03-17 20:28:04.818: WARN/ResourceType(674): Failure getting entry for
> > > 0x7f02001f (t=1 e=31) in package 0: 0xffffffb5
> > > 03-17 20:28:04.858: WARN/PackageManager(674): Failure retrieving icon
> > > 0x7f02001f in package com.myco.myappfree
> > > 03-17 20:28:04.858: WARN/PackageManager(674):
> > > android.content.res.Resources$NotFoundException: Resource ID
> > > #0x7f02001f
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.content.res.Resources.getValue(Resources.java:846)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.content.res.Resources.getDrawable(Resources.java:534)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.app.ApplicationContext
> > > $ApplicationPackageManager.getDrawable(ApplicationContext.java:1923)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.content.pm.ComponentInfo.loadIcon(ComponentInfo.java:88)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > com.android.launcher.LauncherModel.updateApplicationInfoTitleAndIcon(LauncherModel.java:
> > > 452)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > com.android.launcher.LauncherModel.makeAndCacheApplicationInfo(LauncherModel.java:
> > > 433)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > com.android.launcher.LauncherModel.addPackage(LauncherModel.java:177)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > com.android.launcher.Launcher
> > > $ApplicationsIntentReceiver.onReceive(Launcher.java:1860)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.app.ActivityThread$PackageInfo$ReceiverDispatcher
> > > $Args.run(ActivityThread.java:664)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.os.Handler.handleCallback(Handler.java:587)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.os.Handler.dispatchMessage(Handler.java:92)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.os.Looper.loop(Looper.java:123)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > android.app.ActivityThread.main(ActivityThread.java:3948)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > java.lang.reflect.Method.invokeNative(Native Method)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > java.lang.reflect.Method.invoke(Method.java:521)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > com.android.internal.os.ZygoteInit
> > > $MethodAndArgsCaller.run(ZygoteInit.java:782)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> > > 03-17 20:28:04.858: WARN/PackageManager(674):     at
> > > dalvik.system.NativeStart.main(Native Method)
>
> > > and I get this when I try to open the app which references the splash
> > > screen logo:
> > > 03-17 20:45:06.609: ERROR/AndroidRuntime(1111): Uncaught handler:
> > > thread main exiting due to uncaught exception
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):
> > > java.lang.RuntimeException: Unable to start activity
> > > ComponentInfo{com.myco.myappfree/com.myco.myappfree.SplashScreen}:
> > > android.view.InflateException: Binary XML file line #6: Error
> > > inflating class java.lang.reflect.Constructor
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > > 2268)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > > 2284)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.ActivityThread.access$1800(ActivityThread.java:112)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.os.Handler.dispatchMessage(Handler.java:99)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.os.Looper.loop(Looper.java:123)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.ActivityThread.main(ActivityThread.java:3948)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > java.lang.reflect.Method.invokeNative(Native Method)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > java.lang.reflect.Method.invoke(Method.java:521)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > com.android.internal.os.ZygoteInit
> > > $MethodAndArgsCaller.run(ZygoteInit.java:782)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > dalvik.system.NativeStart.main(Native Method)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111): Caused by:
> > > android.view.InflateException: Binary XML file line #6: Error
> > > inflating class java.lang.reflect.Constructor
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.createView(LayoutInflater.java:512)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
> > > 56)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.inflate(LayoutInflater.java:407)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.inflate(LayoutInflater.java:320)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.inflate(LayoutInflater.java:276)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
> > > 309)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.Activity.setContentView(Activity.java:1626)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > com.myco.myappfree.SplashScreen.onCreate(SplashScreen.java:17)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> > > 1123)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > > 2231)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     ... 11 more
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111): Caused by:
> > > java.lang.reflect.InvocationTargetException
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.widget.ImageView.<init>(ImageView.java:103)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > java.lang.reflect.Constructor.constructNative(Native Method)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > java.lang.reflect.Constructor.newInstance(Constructor.java:446)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.view.LayoutInflater.createView(LayoutInflater.java:499)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     ... 22 more
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111): Caused by:
> > > android.content.res.Resources$NotFoundException: Resource is not a
> > > Drawable (color or path): TypedValue{t=0x1/d=0x7f020045 a=-1
> > > r=0x7f020045}
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.content.res.Resources.loadDrawable(Resources.java:1609)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.content.res.TypedArray.getDrawable(TypedArray.java:548)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     at
> > > android.widget.ImageView.<init>(ImageView.java:113)
> > > 03-17 20:45:06.659: ERROR/AndroidRuntime(1111):     ... 26 more

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

Reply via email to