I want to create a script where I start an emulator and after the system is fully booted, I want to install an .apk.
How can I know when the emulator is fully booted so I can run the install command? Here http://developer.android.com/guide/developing/tools/adb.html it is said that adb wait-for-device install <app>.apk
is not correct.
So how can I achieve this? Is it possible? Is my only option to sleep for a few minutes until I can be sure that the emulator is started?