If someone wants to add an option to aapt to rewrite the .apk to have a different package name than the one in the manifest, I'd love to review it. This is a little tricky -- you need to rewrite the manifest's components and such to also work with the new package -- but should be quite doable.
And the nice thing for this kind of stuff is that you don't need to wait for it to ship on a device to use it. ;) On Tue, Sep 29, 2009 at 11:18 PM, mjc147 <[email protected]> wrote: > > So if you have three different projects (each with their own package) > then you have three different generated R files. So the generic > project uses its own R.java and the pro project uses its own R.java > AND the R.java for the generic project. > > I'm not sure I understand the problem - maybe because I haven't tried > this out. Can someone please explain a specific example? > > On Sep 3, 4:41 pm, Datoh <[email protected]> wrote: > > Hi, > > > > I want to use the same eclipse project to maintain only one source > > code (or two projects that refer to a generic project). > > My problem is that the names of the package have to be different on > > the market (eg: my.android.app.lite and my.android.app.pro). > > If the package names are differents, the generated java ressource > > files are differents (eg: my.android.app.lite.R.java and > > my.android.app.pro.R.java). > > So, the source files must point to differents R files according to the > > version (pro or lite) and I have to change all the import... > > > > Do you know how can I deal with that? > > > > Thanks, > > Cedric. > > > -- Dianne Hackborn Android framework engineer [email protected] 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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

