• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to use different resource files and classes for different configurations at runtime?

I will try to make it simple. I want the app to use two different resource files and java classes based on the configuration user selects. The configuration itself is custom, say configType = "Admin" and configType = "User". I want this to be dealt with the same way as product flavors or locale change works.

We were using 2 product flavors for this purpose, but now we want this to be done at runtime not at build. When we change the config type, the app should start using different resource files and java classes than the other config type uses.
 
Back
Top Bottom