Loki
Loki

Reputation: 982

change theme in app by downloading another apk file and getting resources from there

After scouring the internet for hours, I've posted this on SO.

Requirements:

My app will have a total of three themes for user to select from. (Free app) User should download an apk from play store to get these three themes. (Paid apps)

After downloading the paid app the free app should allow user to set any of the three themes in the free app.

How to achieve this please guide me.

I've reached a dead end on this one but I see many apps have achieved this already but there is not guide available anywhere on the web.

Upvotes: 1

Views: 1492

Answers (2)

Jose_GD
Jose_GD

Reputation: 2309

The accepted answer to How to release application plugin using Android Market? will help you. It's not a complete guide but a fair starting point.

Basically you use PackageManager.getResourcesForActivity or PackageManager.getResourcesForApplication to retrieve resources from the other packages, and then use them as you would with an own resource. This other question may complete the picture for you.

Upvotes: 2

DjLisT
DjLisT

Reputation: 19

After you get the .apk, you can read it as a zip and manually search your theme in the resources (res) or assets folder.

Upvotes: 0

Related Questions