script to wait for android emulator to start