How to run the 'AllTests' of ApiDemos in the android sdk sample

by Gavin Aiken » Sun, 15 Mar 2009 04:47:47 GMT

Sponsored Links

You can't run these tests as simple java JUnit tests, they need to be run on
the device. The process is pretty straight forward and is best explained

What I am currently trying to work out is how to debug my tests now that I
can run them! I'm sure it's a flag that I need to pass to the command line
argument but I can't work it out.

Hope this helps,



Other Threads

1. Can AlertDialog not dismiss after click buttons?

I used AlertDialog.Builder to create a dialog to  edit settings, and
check the user input basing on some logic. I wish to show a warning
toast when users click OK button and keep the AlertDialog on screen,
but it seems that the AlertDialog always dismissed after clicking
buttons. Do anyone know how to do that or other solutions? Thanks!

Best Regards,


2. Physical Device Keypad Events.

Doessomeone knowhow to send events to keypad of an Android physical device (a 
real device) ?
if so, can you please publish this part of the code (I'm willing to simulate 
press-key during my application)?

Yorgen Valune


3. Error - Unable to create the selected preference page.

4. Error While Downloading Android Development Toolkit in Eclipse

5. android:label

6. Documentation Update

7. BufferedReader.readLine() undocumentedly discards "#!" prefix