[android-developers] Re: Very puzzling crash report from user

2011-05-31 Thread andrew_esh
Is it possible that the problem is not the device, but that the user
is the only one who has selected a color scheme that requires a color
your application doesn't have access to? Perhaps is personal settings
cause your application to try to guess at a certain PrimaryInverse
color that would fit the scheme, but isn't actually available in the
resources.

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


[android-developers] Re: Very puzzling crash report from user

2011-05-31 Thread Zsolt Vasvari
I don't know if the Sense UI offers a choice of colors, but if it
does, it's buggy.

On May 31, 8:48 pm, andrew_esh andrew.c@gmail.com wrote:
 Is it possible that the problem is not the device, but that the user
 is the only one who has selected a color scheme that requires a color
 your application doesn't have access to? Perhaps is personal settings
 cause your application to try to guess at a certain PrimaryInverse
 color that would fit the scheme, but isn't actually available in the
 resources.

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


[android-developers] Re: Very puzzling crash report from user

2011-05-29 Thread Zsolt Vasvari
I've now had 2 reports of this problem.  The first user claims he
doesn't use a custom ROM, stock Android 2.1.  I haven't heard back
from the 2nd user yet.  But the problem is real.

Which file should I be copying into my project?  The problem is if I
do that, it will probably break on Honeycomb which would use a
different version of the file.  And I have no way of getting the
Honeycomb version to include it in my project, as the source is not
available.

On May 29, 1:29 pm, Brill Pappin bpap...@sixgreen.com wrote:
 Are you in contact with the user?

 I've had some very strange error reports both from custom ROMs and from
 crackers attempting to modify my apps.

 I usually wait to see if there is a trend before I worry too much about a
 strange error report like that.

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


[android-developers] Re: Very puzzling crash report from user

2011-05-29 Thread Zsolt Vasvari
Actually, I think the problem is that the color attribute I am using
textColorPrimaryInverseDisableOnly doesn't exists (or 0) on the
Wildfire/Tattoo



On May 29, 8:29 am, Mark Murphy mmur...@commonsware.com 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 zvasv...@gmail.com 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­utInflater.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­a:
  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 

Re: [android-developers] Re: Very puzzling crash report from user

2011-05-29 Thread Kostya Vasilyev
Speaking of list view selector highlight - the color would break not just on
HC: the standard highlight is orange, while the Galaxy S uses a light blue
and Xperia Arc - silver gray.

And the button down image looks different between my Motorola Milestone
(2.1), Galaxy S (2.2) and Xperia Arc (2.3).

When you sent the user a reference .apk, did he/she make sure to
uninstall the application first?

-- Kostya

2011/5/29 Zsolt Vasvari zvasv...@gmail.com

 I've now had 2 reports of this problem.  The first user claims he
 doesn't use a custom ROM, stock Android 2.1.  I haven't heard back
 from the 2nd user yet.  But the problem is real.

 Which file should I be copying into my project?  The problem is if I
 do that, it will probably break on Honeycomb which would use a
 different version of the file.  And I have no way of getting the
 Honeycomb version to include it in my project, as the source is not
 available.

 On May 29, 1:29 pm, Brill Pappin bpap...@sixgreen.com wrote:
  Are you in contact with the user?
 
  I've had some very strange error reports both from custom ROMs and from
  crackers attempting to modify my apps.
 
  I usually wait to see if there is a trend before I worry too much about a
  strange error report like that.

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


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

[android-developers] Re: Very puzzling crash report from user

2011-05-29 Thread Zsolt Vasvari
I am 100% sure it's because the early Sense UI didn't define
textColorPrimaryInverseDisableOnly, even though it was supposed to be
standard from 1.6 on.

I've now changed it to just textColorPrimaryInverse, I don't remember
why I went with textColorPrimaryInverseDisableOnly in the first
place.  Will see if it will fix these customers, but I am confident
that it will.



On May 29, 4:47 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Speaking of list view selector highlight - the color would break not just on
 HC: the standard highlight is orange, while the Galaxy S uses a light blue
 and Xperia Arc - silver gray.

 And the button down image looks different between my Motorola Milestone
 (2.1), Galaxy S (2.2) and Xperia Arc (2.3).

 When you sent the user a reference .apk, did he/she make sure to
 uninstall the application first?

 -- Kostya

 2011/5/29 Zsolt Vasvari zvasv...@gmail.com



  I've now had 2 reports of this problem.  The first user claims he
  doesn't use a custom ROM, stock Android 2.1.  I haven't heard back
  from the 2nd user yet.  But the problem is real.

  Which file should I be copying into my project?  The problem is if I
  do that, it will probably break on Honeycomb which would use a
  different version of the file.  And I have no way of getting the
  Honeycomb version to include it in my project, as the source is not
  available.

  On May 29, 1:29 pm, Brill Pappin bpap...@sixgreen.com wrote:
   Are you in contact with the user?

   I've had some very strange error reports both from custom ROMs and from
   crackers attempting to modify my apps.

   I usually wait to see if there is a trend before I worry too much about a
   strange error report like that.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Very puzzling crash report from user

2011-05-28 Thread Zsolt Vasvari
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 mmur...@commonsware.com 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 zvasv...@gmail.com 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­utInflater.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­a:
  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):      

Re: [android-developers] Re: Very puzzling crash report from user

2011-05-28 Thread tj
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 Murphymmur...@commonsware.com  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 Vasvarizvasv...@gmail.com  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 classunknown
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 

[android-developers] Re: Very puzzling crash report from user

2011-05-28 Thread Brill Pappin
Are you in contact with the user?

I've had some very strange error reports both from custom ROMs and from 
crackers attempting to modify my apps.

I usually wait to see if there is a trend before I worry too much about a 
strange error report like that.

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