On Fri, Jul 16, 2010 at 11:21 AM, Mark Carter <[email protected]> wrote:
> 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

Use an appropriate import statement and refer to them simply as R.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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