1. Download our Official Android App: Forums for Android!

Apps How to detect if the emulator was completly loaded

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

  1. ovidoo83

    ovidoo83 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Sep 2, 2010

    Sep 2, 2010
    1
    0
    5
    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!!!
     

    Advertisement

  2. IanGClifton

    IanGClifton Well-Known Member
    Rank:
    None
    Points:
    58
    Posts:
    111
    Joined:
    Feb 7, 2010

    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

Loading...