How to combine the original application and the new downloaded application?
For the topic, who says they need to talk together?
How would you develop an original application to get information about a theme and graphic objects from an application for the 2nd theme only?
Step # 1: Choose a naming convention for your packages. For example, if your core application is com.abc.app , your themes might be com.abc.app.theme.* .
Step # 2: When the user comes to the topic selection, use PackageManager and getInstalledApplications() to find their themes by checking the names of their packages.
Step # 3: When it's time to use the theme, call getResourcesForApplication() on the PackageManager to get the Resources theme application so you can access your content.
I am sure that there are strategies (for example, a topic is basically a pipeline, deploying its material in a directory on an external storage from which your main application reads information), but this is the one I started with, since it requires minimal user intervention .
CommonsWare
source share