1. Check out our companion app, Forums for Android! Download from Google Play

How to detect if the emulator was completly loaded

Discussion in 'Application Development' started by ovidoo83, Sep 2, 2010.

  1. ovidoo83

    ovidoo83 New Member
    Thread Starter

    Sep 2, 2010
    Hi all!

    I have an issue on our automation project.
    We are trying to automate the build, installation and running of the app in the emulator. Everything works great(using a python script), BUT we need to know when the emulator was fully loaded so we can execute the command for installing the app. Currently we just use delay() but we don't know for sure how long it takes for the emulated to be up and running and ready for app installation.

    We might need to check the HOME: android.process.acore for this but we don't know how!?

    Please help us!!!


  2. I'm not sure of the best way to do it. After issuing the command to start the emulator, you can add a delay (20s or whatever) and then check if you can access the device with adb. If not, sleep a bit and try again.

    Another option might be to start the emulator with the -shell option and wait to read the # character that comes in.

Share This Page