Tag Archives: reflection

Android: Loading and executing code at runtime – DexClassLoader

Sometimes you may want to add functionality to an application dynamically by adding new jar libraries. Custom classloaders can be used to execute code not installed as part of an application. Examples can range from security (hiding code in resources), mocking/testing, Object-relational mapping, etc. In Android, the DexClassLoader allows an application to load classes from… Read More »