title: How to generate an apk file from Android Application programmatically?
body: <p>This is a weird question . I want to know is there any way we could generate an apk from an android App. Let me explain- An android app which run cmd Commands and could generate apk for another application. Is there any possible way.</p>
  
  <p>I have read that this could be done using ant in Java. I want to know that is this possible on a running android app.</p>
  
  <p>Thanks.</p>