title: How to Build + Run an Android app with Ant on Eclipse?
body: <p>With some hassle, I've managed to tell Eclipse to build an Android app using Ant in debug mode, then call ProGuard to shrink it before producing the APK.
  I want that because my project <a href="https://developer.android.com/tools/building/multidex.html" rel="nofollow">became too big</a> and I needed a way to delete unused methods also when debugging.</p>
  
  <p>Now, if I click on <em>Project -> Build Project</em> I finally see the Ant output and, at the end, I have an optimized APK file on the <em>bin</em> folder.</p>
  
  <p>There is a last thing I need. Before all of this, I just had to click on <a href="http://i.stack.imgur.com/XzHAx.jpg" rel="nofollow">the "build" button</a> on Eclipse to create a non-optimized build then run it on my test device. Now that everything changed, if I click on it, Eclipse tries to build and run my app but <strong>without using Ant</strong>. </p>
  
  <p>So, I want to be able to click on the green button and start this process:</p>
  
  <p>Build with Ant -> Generate optimized APK -> run it on device</p>
  
  <p>For now, I can reach the end of the second step, but I can't run it directly from Ecplise. How can I achieve this?</p>
  
  <p>EDIT: Is it something related to the menu entry <em>Run -> External Tools -> External Tools Configuration... -> Ant Build</em> ?</p>