Fergal Moran
Fergal Moran

Reputation: 4644

IntelliJ Android - Delete application before debug

Does anyone know if there is a way to get create a Debug Configuration in IntelliJ that will remove the application before launch? This can be done via adb commands so it should be possible?

Upvotes: 1

Views: 811

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402045

In the Run/Debug configuration there are some options under Before Launch section, you can create an Ant build.xml file with a simple exec target that will run adb with appropriate options to uninstall your application from the device (or you can use special AndroidAnt tasks that can be installed separately).

Upvotes: 2

Related Questions