How to run Sample instrumentation test applications ?

by vrukesh » Mon, 11 May 2009 14:42:11 GMT

Sponsored Links

We are exploring to run the Instrumentation tests for Android 1.1 r1.

On the ARM-based target, Applications Apidemos.apk and
ApiDemosTests.apk are copied in /system/app location.

We run following command and got the error:



am instrument -w com.example# .android.apis/

usage: am [start|broadcast|instrument]
       am start -D INTENT
       am broadcast INTENT
       am instrument [-r] [-e <ARG_NAME> <ARG_VALUE>] [-p <PROF_FILE>]
                [-w] <COMPONENT>

       INTENT is described with:
                [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
                [-c <CATEGORY> [-c <CATEGORY>] ...]
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for:
INSTRUMENTATION_STATUS: id=ActivityManagerService
                [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
                [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
                [-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
                [-n <COMPONENT>] [-f <FLAGS>] [<URI>]

What are we missing ?

Thanks and Regards,

Other Threads

1. How to Thump? Name of Haptic Trigger.

Can someone clue me in on the name of the intent that triggers the
haptic feedback when the user selects icons on the desktop, or when in
Labyrinth the ball hits the wall.  I thought it was vibrate ... but
after playing with Labyrinth I am sure there is something else. In
Labyrinth it feels as if the thump occurs relative to where the ball
hits (but I am not sure if this is really the case or I am imagining

I asked about this before and thought I had figured it out myself
(thought it might be a short burst of vibrate) ... but apparently not.

Thank You,

2. How to compile G1 apps code


I wanna to compile the apps code, has any one tried it earlier, if so
lemme know. How to compile the camera aur calender code.


3. Developing an app using a retail phone

4. Rolodex View

5. Where to put xml file????

6. Invalidates the TabView

7. expandable list