How to Get Serial Number or ID of Android Emulator After it Runs?

Posted by papalagi on Stack Overflow See other posts from Stack Overflow or by papalagi
Published on 2010-02-06T19:23:01Z Indexed on 2010/04/19 10:53 UTC
Read the original article Hit count: 603

Filed under:
|

If I run several emulators with -no-window option in one machine. The command "adb devices" shows:

List of devices attached
emulator-5554  device
emulator-5556  device
emulator-5558  device
...

However, according to this output, I can't tell the difference between each emulator device at all. I need to know which emulator runs on what AVD, then I can install APKs or send commands to the emulator.

How can I recognize each emulator device or get the serial number of emulator after it runs?

© Stack Overflow or respective owner

Related posts about android

Related posts about emulator