• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to detect if the emulator was completly loaded

ovidoo83

Lurker
Sep 2, 2010
1
0
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!!!
 
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.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones