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. Networking / Feeds (newbie level)

I'm currently planning out my first Android app: To start, all it's
going to do is display a bunch of images specified by an ATOM or RSS
feed in a GridView. The UI part seems to be easy enough because the
Gridview is very well documented, and there's even example code to do
almost exactly what I want. I'm struggling on the feed parsing side -
there's almost no mention of how to do networking tasks in the Android
developer's site (I guess that's because all the basic Java networking
stuff works on Android).

I'm stuck on finding a good way to parse a feed in Android - I'd
expect that given the importance of Atom to Google there's probably a
really easy way of dealing with Atom and other common Gdata protocols
- but I've been searching through the Android docs and I've not found
how to do it.

Could anybody point me to some docs or examples of any of the
 * Parsing a well-formed RSS or ATOM feed
 * Querying gdata directly (e.g. Calendar)

2. Alphabetical Method Index for Android SDK

The Java SDK documentation contains an alphabetical list of methods,
constructors, and constants. I haven't found anything comparable for
the Android SDK, so I wrote a program to construct one.  Full details
are at If you don't find it useful,
you may find it to be mildly amusing.


3. webview load set progress bar

4. problems in installing android over 9.04

5. how to structure my app to run in background

6. Access: telephony.gsm.SimCard etc.

7. Change button text directly