Also, an application module cannot be added as a dependency to another application. Making the code and resources of the second application available in the first/main application.Īfter stumbling about with various options, I architected this by having the two application modules in a single project.Īs is well known, in Android Studio, a project typically contains modules where one is an application module (“:app”) and perhaps one or more other are library modules.(This is necessary because, by design, both apps A and B would share several UI components) Setting up shared resources for two applications. However, only a single apk file must be distributed for app A. On the click of a button within app A, a new task should be started with the launch activity of app B. A simpler way to put it is that we want some particular functionality of the main app to be distributed as a separate standalone app. The requirement is that two different apps would be distributed, but in addition, one of the apps is supposed to contain all the functionality of the second app. I work on a project that has assumed an interesting structure, so I want to share the experience.
0 Comments
Leave a Reply. |