views:

19

answers:

1

For Android 2.1, I am deploying a reader application with it's document packaged in the asset folder. Any branding is done by dynamically generating XML and resources as appropriate. The application name itself is also generated.

Since it is the <manifest> tag's "package" property that needs to be unique, I nevertheless have a problem installing more than one instance of this app.

I would like to dynamically edit the manifest package attribute's value to reflect the document and brand that I am building. But this causes build problems, specifically the location of R.java is no longer available to the component package under which the code resides. Originally, the component package is the same as the application manifest package. But precisely this manifest package name is the part that needs to be variable.

How should I best proceed?

A: 

I don't have enough reputation now to add a comment ... so here is my comment:

Maybe you should add flags like 'Java' and 'android' to your question.

David