title: How to generate APK file from source in my app programmatically
body: <p><strong>For PHP:</strong> </p>
  
  <p>I have a project to create app like APK creator lite. I want to know how can I create APK file from my Android app using Java programmatically. I have search a lot about this but could not found any straight-forward way.
  Basically task is that I have required Apk Name, Icon Url, WebView Url and Version in editText. Now I want to create APK from my app as user provided input Data.</p>
  
  <p><strong>For Asp.net:</strong> </p>
  
  <p>I'm working on a project that will use asp.net and Android. First Client will fill data in the form and send to server on asp.net. When Data will be received then there will be a package of android drawable, layout, Java classes,manifest.xml etc. Then programmatically will modify icon,version No and URL of package.When everything will be done then </p>
  
  <p>Here is my main problem,I want to create (APK) file. How can I do this? I tried it using gradle build.</p>