On Thu, Jan 26, 2012 at 5:25 PM, joebowbeer <[email protected]> wrote:
> Mark Murphy writes:
>
>> You have to rewrite your [library] code to avoid using R. values, as they 
>> will be wrong.
>
> The resource compiler was changed in r14 so that the identifiers in a
> library project's R.java are no longer declared "final". This prevents
> the constants from being inlined into library bytecode, and instead
> forces these references to be resolved at runtime. In theory this
> should allow your library to continue to use R. values. Though, as
> explained in the r14 change docs, you won't be able to use resource
> ids in switch statements.

True, though I'm a bit hesitant to rely upon that behavior until they
release the full library-project-as-distributable-JAR support.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

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