Reputation: 21
My apps requirements are such that i want to create two AndroidManifest files both will have some common activities and some unique activities. can i have two manifest files for single application?
Upvotes: 2
Views: 2143
Reputation: 937
First: One app can have only 1 manifest.
If you want more then you need more apps. If you like some common functionality that is shared between two apps, you can declare a third android project as a Library
project and reference it in both of the other apps. The library will also have a manifest of its own.
Thanks I got my solution...
Upvotes: 1
Reputation: 362
You can't do that. It is better to find out which activities to run in your software. You can always check the OS version or device capabilities in your own app and decide your path and functionality on the runtime.
Upvotes: 0
Reputation: 16110
First: One app can have only 1 manifest. if you want more then you need more apps. if you like some common functionality that is shared between two apps you can declare a third android project as a Library project and reference it in both of the other apps. the library will also have a manifest of its own.
Upvotes: 0