title: Android Studio : How to uninstall APK (or execute adb command) automatically before Run or Debug?
body: <p>Now I need to uninstall the App every time before <code>Run\Debug</code> it in Android Studio. Because I need to re-create the database before I run \debug the app. I know I can run the command </p>
  
  <pre><code>adb uninstall [package_name]
  </code></pre>
  
  <p>in terminal to clear the files under <code>/data/data/[package_name]</code>. But it's not convenient way if I have to execute the command every time. I hope the </p>
  
  <pre><code>adb uninstall
  </code></pre>
  
  <p>command can be executed automatically when I click <code>Run\Debug</code> button.</p>