After giving up on using the new Android Library Project feature, I've
resorted to copying R-dependent code between Android projects.

What I would like to do is define a class in each project which
extends the R class. So, in app1, there might be:

package com.mycompany.apps
class R extends com.mycompany.app1.R {}

and in app2,

package com.mycompany.apps
class R extends com.mycompany.app2.R {}

and then all references to R in that project can be
com.mycompany.apps.R

This does not work because the generated R is final.

Instead, after copying code from one project to another I need to
rename all com.mycompany.app1.R references to com.mycompany.app2.R

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

Reply via email to