You can't (right now).

android.jar is special because these are the framework resources that
exist on the device. Android.jar is not bundled with your project's
code and resources, and the resources in android.jar are not part of
your application's R class.

A Jar with resources that is meant to be added to an existing project
needs to be able to merge its resources with the project's own
resources. This impacts the resources ID generated in the project's R
class in a way that makes the R.*.* ID used to compile the jar
obsolete. Since those constants are inlined, any code in the jar file
that reference the resources will be broken as the IDs are different
in the final APK.
This is why the library projects in the SDK are source only.

I'm working on a solution that may fix this but no ETA at the moment.

Xav

On Tue, Mar 29, 2011 at 7:52 AM, Jordan 5222
<[email protected]> wrote:
> Can someone of the Android team give me a hint? Or just a "no you can't",
> but i don't understand why.
>
> 2011/3/28 Mark Murphy <[email protected]>
>>
>> On Mon, Mar 28, 2011 at 8:56 AM, Jordan 5222
>> <[email protected]> wrote:
>> > Thank you for the reply, Mark.
>> > Any hint where to study how android.R class works?
>> > I suppose that it's generated when we compile the entire Android system,
>> > in
>> > a similar way of the standard R class, but it takes a "photo" of system
>> > resources.
>>
>> Since the values must not change from release to release of Android, I
>> suspect the process is more involved than that. However, I have no
>> idea where you should look for details, or even if there are any
>> details beyond the source code.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: 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
>
>
>
> --
> Jordan - http://www.lulz-industries.org
>
> --
> 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



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

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