I had the same problem with list_selector_background. You can fix that by copying the resources into your own apk.

tj


Caused by: android.content.res.Resources$NotFoundException: File res/drawable/list_selector_background.xml from drawable resource ID #0x0
at android.content.res.Resources.loadDrawable(Resources.java:1715)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ListView.<init>(ListView.java:169)
... 34 more
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/list_selector_background.xml from xml type drawable resource ID #0x0
at android.content.res.Resources.loadXmlResourceParser(Resources.java:1942)
at android.content.res.Resources.loadDrawable(Resources.java:1710)




On 05/29/2011 10:34 AM, Zsolt Vasvari wrote:

Well, I do not have such a resource and I don't use
android.R.drawble.btn_dropdown anywhere.  I do have a TextView where I
give it a style of android:Widget.Spinner which would eventually
resolve to btn_dropdown.

The reason I am at a loss is as there are thousands of users where the
same executable works just fine, but this one user gets an exception
on his LDPI QVGA device.  My guess there are not too many users with
this device, but as I mentioned in my first post, setting up an
emulator instance with those parameters don't reproduce the problem.



On May 29, 8:29 am, Mark Murphy<[email protected]>  wrote:
Based upon the exception, Android is failing to load
R.drawable.btn_dropdown
("android.content.res.Resources$NotFoundException: File
res/drawable/btn_dropdown.xml"), not android.R.drawable.btn_dropdown.





On Sat, May 28, 2011 at 8:10 PM, Zsolt Vasvari<[email protected]>  wrote:
I've received the following crash report from a user.  He's running
HTC Wildfire 2.1.  I've tried duplicating the issue on the emulator by
setting up a Wildfire-like system (2.1, QVGA). but no luck.  I
suspected a corrupt installation, so I sent him my APK and the same
thing happened.
I am at a complete loss.  Mark Murphy appears to have answered a
similar question recently on StackOverflow, but he's just stating what
I already know:
http://stackoverflow.com/questions/6060592/resources-notfoundexceptio...
But I am not using a the compatibility library.  My error indicates
that the system cannot inflate a TextView as it cannot load one of the
built in resources. Anybody has a clue?
Caused by: android.view.InflateException: Binary XML file line #40:
Error inflating class<unknown>
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayočµ´tInflater.java:
56)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.javč‹”:
207)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.app.Activity.setContentView(Activity.java:1629)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
com.zvasvari.anmoney.app.transaction.activity.NewEdit.e(Unknown
Source)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
com.zvasvari.anmoney.app.AnMoneyActivity.onCreate(Unknown Source)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2549)
05-28 10:47:40.346 E/AndroidRuntime(2108):      ... 11 more
05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by:
java.lang.reflect.InvocationTargetException
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.widget.TextView.<init>(TextView.java:329)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
java.lang.reflect.Constructor.constructNative(Native Method)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
05-28 10:47:40.346 E/AndroidRuntime(2108):      ... 24 more
05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by:
android.content.res.Resources$NotFoundException: File res/drawable/
btn_dropdown.xml from color state list resource ID #0x0
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.content.res.Resources.loadColorStateList(Resources.java:1813)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.content.res.TypedArray.getColorStateList(TypedArray.java:289)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.widget.TextView.<init>(TextView.java:639)
05-28 10:47:40.346 E/AndroidRuntime(2108):      ... 28 more
05-28 10:47:40.346 E/AndroidRuntime(2108): Caused by:
android.content.res.Resources$NotFoundException: File res/drawable/
btn_dropdown.xml from xml type colorstatelist resource ID #0x0
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.content.res.Resources.loadXmlResourceParser(Resources.java:
1920)
05-28 10:47:40.346 E/AndroidRuntime(2108):      at
android.content.res.Resources.loadColorStateList(Resources.java:1808)
05-28 10:47:40.346 E/AndroidRuntime(2108):      ... 30 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
--
Mark Murphy (a Commons 
Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!- Hide quoted 
text -

- Show quoted text -

--
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