Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-28 Thread Mark Carter
Thank you for clarifying those points, Dianne. On 28 January 2011 00:42, Dianne Hackborn hack...@android.com wrote: This isn't really a problem; it is working as intended. You are using something from a newer platform that doesn't exist on an older platform. What do you expect to happen

[android-developers] Re: Built-in resource unexpectedly not found

2011-01-27 Thread Mark Carter
As a test, building against SDK 9, I compiled an APK referencing @android:drawable/presence_video_away which was introduced in SDK 9. Then I ran the APK on a SDK 4 emulator and got an exception indicating resource not found (as above). However, it referenced a seemingly random resource (one

Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-27 Thread Dianne Hackborn
On Wed, Jan 26, 2011 at 5:34 PM, H m...@howardb.com wrote: I suspect that the user has (e.g.) rotated the phone and at that split moment, the activity is being dropped and restarted by android. But things running in other threads may still linger and if they try to access app resources, the

Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-27 Thread Dianne Hackborn
On Wed, Jan 26, 2011 at 7:55 PM, Bob Kerns r...@acm.org wrote: Just to be very clear about it -- given the current reality, I suggest viewing all firmware-defined resources as, well, infirm. No. Any resources that are in the public SDK are officially supported resources, there for you to

Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-27 Thread Dianne Hackborn
On Thu, Jan 27, 2011 at 12:21 AM, Mark Carter mjc1...@googlemail.comwrote: As a test, building against SDK 9, I compiled an APK referencing @android:drawable/presence_video_away which was introduced in SDK 9. Then I ran the APK on a SDK 4 emulator and got an exception indicating resource not

[android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Hari Edo
On Jan 26, 2:53 pm, Mark Murphy mmur...@commonsware.com wrote: I would recommend that developers depend as little as possible on explicitly using firmware-defined resources. If you need them, copy their values into your project. Or, at least have a value that you use as a fallback in case a

Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Mark Murphy
On Wed, Jan 26, 2011 at 4:05 PM, Hari Edo hari@gmail.com wrote: On Jan 26, 2:53 pm, Mark Murphy mmur...@commonsware.com wrote: I would recommend that developers depend as little as possible on explicitly using firmware-defined resources. If you need them, copy their values into your

[android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread H
and one trying to fetch a custom .9.png that I had put into my own app I see a fair few crash dumps similar to this. I suspect that the user has (e.g.) rotated the phone and at that split moment, the activity is being dropped and restarted by android. But things running in other threads may

Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Mark Carter
@H That's an interesting idea, but in my case, from the analytics I can see this: The user installs the app. 10 seconds later, the exception is thrown. 10 seconds after that, the same exception is thrown (I assume the user retried). After that, no more reports from the user, so I assume he just

[android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Bob Kerns
Just to be very clear about it -- given the current reality, I suggest viewing all firmware-defined resources as, well, infirm. I'm just saying this is something which OUGHT to have been done better, and could still be, by the platform team -- including the tricky task of getting the OEMs on

Re: [android-developers] Re: Built-in resource unexpectedly not found

2011-01-26 Thread Mark Carter
In this particular example, it's not a simple case of copying the primary_text_light.xml to the app's resource structure because that file references private built-in resources. How best to handle that!? On 27 January 2011 10:55, Bob Kerns r...@acm.org wrote: Just to be very clear about it --