Android. Using resources from dynamically loaded jar

463 Views Asked by At

My last hope ever:)

I'm developping an Android application for the drivers of a taxi service. Many updates can happen during a lifitime of this product so we want to try to maintain them by internal means of application. So i wrote a launcher that reads jar over internet, I got rid of launching dinamically loaded code with the help of DexClassLoader. I use base activity registered through manifest, but it uses a kind of adapters loaded dynamically for performing actual code.

Such simple adapter is successfully linked to activity and gets executed. But I have failed also setting layout dynamically with setContentView(). I manually placed all R-files into dynamically loaded jar-file, but I still hadn't find a solution how to use those resources.

Isn't there really a way to do this? If no, I think it's a big joke: one can load and execute almost any code dynamically from external locations but he can't use resources from such locations:(

0

There are 0 best solutions below