In "traditional" Java, you can create and compile classes at runtime, or use bytecode generators such as ASM to grow or generate class files.
However, you need to keep in mind that Android is not a Java virtual machine. When you create an APK, class files are converted to specialized bytecode that is processed by the Android Dalvik virtual machine.
-, Dalvik, , ( ) , .
Dexmaker, . .