Pages

Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

AVD fail to start with Android SDK tools Rev 12

I was trying to launch an Android application using Eclipse 3.6.2 and Android SDK tools REV 12, when I noticed that the Android Virtual Device failed to start with the following error message:

invalid command-line parameter: File
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information


The issue is caused by blank spaces in the Android SDK location exported in Eclipse under Window -> Preferences -> Android

A solution for Windows users is to replace the Android SDK location name for its short filename version (8.3 notation)

How to get the SFN for the Android SDK location in Windows?

  • Execute the Command Prompt (CMD)
  • Type "DIR /X" to list the directories with their SFN



For our case we need to change the "Program Files (x86)" by "PROGRA~2" in Window -> Preferences -> Android:


Apply the changes and execute the application,  the AVD will be launched succesfully.

Android Monkey

Here is my version of the Android Monkey to make reference to the known embedded test framework in Android systems:



Hello World I am Android Monkey


Android Monkey Tool Video Demo


The following video shows a simulation of a Android automated tests that exercises many different components like the Android Monkey framework, Key presses (short and long) using the Kernel Input subsystem and Android Activity Manager.




Most of the test code shown on this video demo is available at the omap-ddt project