See Also: DexClassLoader Members
A class loader that loads classes from .jar and .apk files containing a classes.dex entry. This can be used to execute code not installed as part of an application.
This class loader requires an application-private, writable directory to cache optimized classes. Use Context.getCodeCacheDir() to create such a directory:
java Example
File dexOutputDir = context.getCodeCacheDir();
Do not cache optimized classes on external storage. External storage does not provide access controls necessary to protect your application from code injection attacks.