Thank you. I am trying to run the unit tests as documented in AllTests.java:

 * To run all suites found in this apk:
 * $ adb shell am instrument -w \
 *   com.example.android.apis.tests/android.test.InstrumentationTestRunner

I have 'cd' to the 'android-sdk-mac_x86-1.0_r2/samples/ApiDemos/bin'
and then type 'adb shell am instrument -w
com.example.android.apis.tests/android.test.InstrumentationTestRunner
'.

But I get this error:
$ adb shell am instrument -w
com.example.android.apis.tests/android.test.InstrumentationTestRunner
INSTRUMENTATION_FAILED:
com.example.android.apis.tests/android.test.InstrumentationTestRunner
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>] ...]
                [-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>]

Can you please tell me why?

Thank you.


On Thu, Jan 29, 2009 at 12:34 PM, hmmm <[email protected]> wrote:
>
> Did you start the emulator, first?
>
> ----- Original Message -----
> From: "ying lcs" <[email protected]>
> To: <[email protected]>
> Sent: Thursday, January 29, 2009 9:51 PM
> Subject: [android-beginners] How to run the adb command with the emulator?
>
>
>>
>> Hi,
>>
>> I try to run the 'adb shell' command with the emulator.
>> But all I get is 'error: device not found'.  Can you please tell me
>> how to setup my emulator to work with the 'adb shell' command'?
>>
>> $ adb shell am instrument
>> error: device not found
>>
>> Thank you.
>>
>> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to