Tag Archives: how to

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 »

How to : Android IPC using Messenger to a Remote Service

In this short tutorial we will see how to create an Android remote service and bind to it in order to send two-way inter-process-communication (IPC) messages using the Android Messenger api (simplifies the use of AIDL). In Android there are multiple ways to do IPC, such as Intents (check IntentService), Binders (AIDL or Messenger) and… Read More »