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 firmware-defined resource is not available.
There have been too many cases of OEMs changing (or, in your case,
apparently removing) these resources in ways that cause problems for
apps.

While I appreciate the argument that using system-defined resources
makes it easier to blend into the platform, IMHO...

stability > internal consistency > platform fidelity

and the system resources are unreliable and, if changed, may be
inconsistent with non-system-resources in the rest of your app.

On Wed, Jan 26, 2011 at 10:26 AM, Mark Carter <[email protected]> wrote:
> Analytics for one of my apps tells me that on rare occasions this
> exception is thrown from the Activity.setContentView() method:
>
> java.io.FileNotFoundException: res/color/primary_text_light.xml
>
> It happened on a Motorola Milestone which appears to be using official
> firmware: SHOLS_U2_01.03.1.1257641482 (which is SDK 2.0, I think)
>
> The resource in question refers to a built-in Android resource which
> has been there since API level 1.
>
> Clearly this is not a programming error but something else.
>
> Any ideas how this can happen?
>
> --
> 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/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2

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