title: How to compile APK from command line?
body: <p>I am interested in making Android apps on demand. Depending on the clients request, my web site would send me a JSON file direct to a Windows application that I have created in Delphi. This one would save the file inside the Android app source folder and then, execute a command line telling the Android compiler to generate the APK file and send it to my client, all that without my presence.</p>
  
  <p>The Android project was made with <a href="http://www.motorola.com/sites/motodev/us-en/motodev_lp.html" rel="noreferrer">MotoDev</a>. And it uses the Android SDK that is in my root. </p>
  
  <p>How should I configure the command line to achieve this from inside my Delphi program?</p>
  
  <p>I will also need to change the manifest to put a new version number so it does not conflict with other clients version.</p>