1. HUGE Androidforums.com UPDATE! Learn what's new (and download the new app!)
    Dismiss Notice

How to detect if the emulator was completly loaded

Last Updated:

  1. ovidoo83

    ovidoo83 New Member This Topic's Starter

    Sep 2, 2010
    Likes Received:
    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. IanGClifton

    IanGClifton Well-Known Member

    Feb 7, 2010
    Likes Received:
    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