How to include com.android.internal.R into android.jar

776 views
Skip to first unread message

James Wang

unread,
Dec 4, 2009, 3:53:51 AM12/4/09
to android-platform
We add some resources into framework-res.apk. We can refer them by
@*android:type/name in layout.xml but get stuck with writing code
since com.android.internal.R is not included in android.jar.

We wonder how to include it into android.jar. Which part make files
should we edit?

Dianne Hackborn

unread,
Dec 4, 2009, 3:59:56 AM12/4/09
to android-...@googlegroups.com
You really don't want to do that.  If you have an .apk that is using private resources, you really really want to build it with the platform build system, because those resource IDs can change each time you modify and rebuild the platform.  If you build them separately, I can guarantee you will run in to obscure bugs where the .apk binary you are using is not compatible with the platform build it is running on.


--

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





--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

James Wang

unread,
Dec 5, 2009, 9:13:43 AM12/5/09
to android-platform
I know it but I just wonder how.
Any suggestion will be appreciated!

V Samadi Bokharaie

unread,
Aug 16, 2013, 11:12:17 AM8/16/13
to android-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages