Is there an easy way to build, install, and automatically run a custom Gradle build in Android Studio?

When I click the βPlayβ button in Android Studio (with the usual configuration of the Android project), my project builds, installs it on the desired device, and launches the application.

How can I do this using specific Build / Product properties (using Gradle)? I got to the point of creating a Gradle configuration that runs the "installFlavor1" task. This installs correctly, but does not start the application automatically.
android android-studio gradle
loeschg Oct 22 '13 at 22:31 2013-10-22 22:31
source share