S
S
stdio962017-02-10 23:22:56
Java
stdio96, 2017-02-10 23:22:56

Different activities for the same project?

Hello. There is a project that is divided into several flavors (app1, app2, etc.). Let's say app3 uses all the same resources as app1 and app2, but it has an additional activity that should only be in this project. The difficulty is that this activity uses the minApi version more than others and simply registering it as a separate one will not work, because the API version (when compiling app1 or app2) will be less. I think to create an empty activity in the main project (main folder), and an activity with the same name and 1 more manifest file in the app3 folder. I read that you can define multiple manifests for 1 project. In general, the question is how to implement so that an additional activity is loaded on 1 of several projects (or how to make 2 manifests so that they replace each other). Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question