Posts

Showing posts with the label android

Android Testing in Headless Emulator

When testing Android applications you have to rely on running the tests in the emulator or a device attached to your computer. However, if you want to follow a continuous integration workflow for Android development, you might need a headless emulator that runs in a non-graphical environment. For instance, I have been using  Travis CI  and Gradle for automating Android builds . To completely avoid showing the emulator interface (headless emulator) you need to start the emulator with some options in your terminal. First, you can create an specific Android AVD as follows: 1 android create avd -- force - n test - t android - 17 -- abi armeabi - v7a Then, to run the headless emulator: 1 emulator - avd test - no - skin - no - audio - no - window The '-no-skin' option removes the emulator buttons such as the home and other hardware keyboard buttons. The '-no-audio' option disables the audio support. Finally, the '-no-window...

Automating Android builds with Gradle

Gradle  is a new build automation tool intended to replace older technologies such as Maven and Ant . With that purpose, Gradle can automate the building, testing and deployment process of your Java based applications. The Android project has already upgraded its building tools to use Gradle . Thus, you should really try this if you are developing Android applications. Moreover, if you are following the  Test Driven Development (TDD) methodology, Gradle is a must. Installing Gradle First, make sure you have installed a Java JDK (Gradle requires JDK 1.5 or higher). Then, you need to download a distribution from the Gradle website (the current supported version is Gradle 1.6) and uncompress the file into your desired directory. Afterwards, you have to configure the GRADLE_HOME  environment variable on your path: export GRADLE_HOME=/your_gradle_directory export PATH=$PATH:$GRADLE_HOME/bin source ~/.bashrc Finally, you can check your working insta...

Aplicaciones Android con Ruby y Ruboto

Image
Ruboto  es un framework para desarrollar aplicaciones Android nativas, utilizando el lenguaje de programación Ruby. Aquí dejo el video de una platica-tutorial que di en el BIT Center de Tijuana a los miembros del  Google Developers Group Tijuana .