It launches the specified item rather than the default Activity. In my case it runs RunAllTests. The file Am.java exists at: android-sdk-macosx/sources/android-14/com/android/commands/am/Am.java...actually under android-14, 15, and 16.
Regards, Guy On Tuesday, October 23, 2012 8:53:46 AM UTC-7, bob wrote: > > What does the -n do? > > > Here is the doc for am: > > > *usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>]* > > * [--R COUNT] [-S] [--opengl-trace] <INTENT>* > > > > On Tuesday, October 23, 2012 10:06:46 AM UTC-5, Guy Nicholas wrote: >> >> For automated testing purposes I am trying to launch my app via the >> command line, and have it not return until the app is finished. I am using >> this shell command: >> adb shell am start -W -S -n com.whatever.my_app/.RunAllTests; >> The problem is this works sometimes, and when it doesn't, it hangs and >> never returns. In LogCat, and on the device or emulator, I see my app >> launch, run tests, and quit, but I am still stuck in the shell command. >> Any ideas why this fails to return? >> >> Regards, Guy >> > -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en