This view is actually not supported as a standard tool on Android, so you are heading for a lot of work to build it yourself.
The first thing you need to know is Context.createPackageContext (), which allows you to create a Context for another .apk (and therefore load its resources). Then you can use this Context to upload images, etc. Please note that these resources are completely different from your own application resources, so you cannot use standard tools such as themes or such to perform a replacement. You just need to manually place the code wherever you want to download "thematic" resources that explicitly extract it from this context.
To open the available .apks (and thus the package name for use with createPackageContext ()), you can use the PackageManager tools to query the components. For example, you can say that each .apk theme will have the following:
<receiver android:name="something"> <intent-filter> <action android:name="com.mydoman.action.THEME" /> </intent-filter> </receiver>
Now you can find all .apks with such receivers through PackageManager.queryBroadcastReceivers ():
http://developer.android.com/reference/android/content/pm/PackageManager.html#queryBroadcastReceivers (android.content.Intent, int)
To select those that have the specified intent filters, use the intent made with:
Intent intent = new Intent("com.mydoman.action.THEME");
source share