Android - dynamically load class into memory
<p><a href="https://developer.android.com/reference/dalvik/system/DexClassLoader.html" rel="nofollow">DexClassLoader</a> is great but works only by loading the compiled class as dex/jar file from the internal/external storage. </p>

<p>How can I load class directly into memory, without writing anything to the card first?</p>

<p>I am aware of the <a href="https://github.com/OpenHFT/Java-Runtime-Compiler" rel="nofollow">Java-Runtime-Compiler</a> (compiles String to Class on-the-fly) from Peter Lawrey, which would be perfect, but it does not work in android.</p>