I need to generate or build an APK file through some Java program where I select the Android source project. Suppose I have a button on a web page. When clicked, it generates an .apk
file.
I have seen we can build the APK file through Ant and Gradle. But this runs through the command shell. I don't want to do it in a command shell. I want to write a Java program. Or maybe I can run shell commands through a Java program.
Could anybody guide me on this? Thanks
Thanks for the answers you have provided. For those answers I need to go through Gradle or Ant. I will do that if I have to. But, I am looking for alternatives.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…