Prerequisites
- Java 6 installed
- Android SDK installed
AndroidKickstartR
AndroidKickstartR is a simple tools that creates an Android project together with a Maven project with all required dependencies:
Just fill in your ApplicationName, packagename and Main activity, enable the Maven option and click Download it! Extract the zip file and run mvn clean install android:deploy eclipse:eclipse. Notice that when you didn't start any emulator or forgot to create an AVD this step fails, but don't worry. The first thing you're going to hate when developing Android applications is the slow emulator, however there is a nice alternative using Androidx86 that can be executed using VirtualBox:
Androidx86
Create the VirtualBox image using the directions and get the ipaddress of the emulator, in my case that's 192.168.0.104. Start the adb process and connect it to the Android VirtualBox image:
adb connect 192.168.0.104
Now we can re-run our maven targets: mvn clean install android:deploy. Open up your Android VirtualBox image, and run your favourite app!
Conclusion
Using AndroidKickstartR you can use Maven for deployment, codequality (i.e. Sonar, mvn sonar:sonar) and continuous integration (i.e. Jenkins). Androidx86 speeds up the development process, every android:deploy really redeploys the app.
Last hint: don't use too much IDE features from Eclipse or IntelliJ and use your IDE just for coding, let Maven handle the build, deployment en quality part.


