Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Your question isn't that clear. Could you explain what you're trying to do?
Your question isn't that clear. Could you explain what you're trying to do?
Runtime.getRuntime().exec("/storage/emulated/0/AppProjects/MyJavaConsoleApp/src/Example2.java");
How to use Dalvik for compiling, building, runing program.?That's not going to work. I think you misunderstand how to use the exec() method of Runtime. The string parameter is the path to an executable (binary) file within the filesystem.
Simply specifying a Java source file won't work and would probably generate an exception.
Plus you have a basic misunderstanding of how an Android app is constructed, because you never define a main() method. Android apps run as a thread of execution, within the Dalvik JVM runtime framework. The entry point for any app is via the onCreate() method.