Hi Cheryl:

I think  'wait-for-device' sort of works :). For instance, this
command works for me:

adb wait-for-device shell getprop

However, when I attempt to use 'adb wait-for-device install', I see
the same error as you. It seems wait-for-device only waits long enough
for device to come online, but not long enough for the whole system to
fully boot.

Thanks for the report, I've filed a bug on your behalf here:
http://code.google.com/p/android/issues/detail?id=842

Regards,
Brett.

On Aug 28, 4:04 pm, Cheryl Sedota <[EMAIL PROTECTED]> wrote:
> The 'wait-for-device' adb flag does not work in the beta SDK... I try
> executing this:
>
> adb wait-for-device shell am start -a android.intent.action.MAIN -n
> com.frogdesign.sampleapp/com.frogdesign.sampleapp.MyActivity
>
> ... and I get this:
>
> Error type 2
> Error: Unable to connect to activity manager; is the system running?
>
> 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>] [<URI>]
>
> and also this when i try to wait before installing an app:
>
> adb wait-for-device install .\MyApp.apk
> 1525 KB/s (0 bytes in 2071216.001s)
> Error Type 1: Could not access the Package Manager!
> usage: pm [list|path|install|uninstall]
>        pm list packages [-f]
>        pm list permission-groups
>        pm list permissions [-g] [-f] [-d] [-u] [GROUP]
>        pm path PACKAGE
>        pm install [-l] [-r] PATH
>        pm uninstall [-k] PACKAGE
>
> Please advise.  I think this should work per the documentation 
> here:http://code.google.com/android/reference/adb.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to