Reputation: 6061
I am trying to use the DexClassLoader to download a JAR/APK in my app. I would like to modularize my app so I can download UI flows the user might go on demand instead of shipping them all together into my main app.
Loading the actual classes works fine and I managed to load some UI components which I can add to my host activity.
My problem is that obviously I cannot access or add resources (Strings, drawables, layouts) to my downloaded package because they do not come with my host APK. Is it possible to dynamically load resources for my downloadable JAR/APK?
Upvotes: 5
Views: 2218
Reputation: 5575
You can "dynamically" download any resources you want, put them in a directory you choose, and use them in your app. It's what I currently do in an app. I don't think you can put them in the same directory with the resources that are in your project, but does that matter?
Upvotes: 1