hello, I assume that you're using M3, since running multiple instances on Windows is only supported since M5. (the documentation you point to is for the latest SDK release)
if you have a M3, then unfortunately both emulators will listen to the same ADB ports, resulting in the problem you're seeing (thanks for SO_REUSEADDR being so broken and useless in Winsock). this doesn't happen on Linux or OS X however, but M5 has the necessary fixes... On Mon, Mar 31, 2008 at 5:31 AM, ferrybaaske <[EMAIL PROTECTED]> wrote: > > -- my scenario -- > I tried to start two instances of the android emulator by the > following commands (windows xp): > start emulator -console -verbose -verbosekeys -logcat "out" -data db/ > instance1 > start emulator -console -verbose -verbosekeys -logcat "out" -data db/ > instance2 > > On first console, I see the following output: > emulator: opening read/write file 'db/instance1' > emulator: control console listening on port 5554, ADB on port 5555 > > On second console, I see the following output: > emulator: opening read/write file 'db/instance2' > emulator: control console listening on port 5554, ADB on port 5555 > > After both instances are started, I typed "adb devices" and got the > following message: > List of devices attached > 1 emulator-tcp-5555 device 0 > > Installing an application does work only on first instance: > adb -d 1 install bin/myapp.apk > 382 KB/s (0 bytes in 366804.000s) > > -- my problem -- > I am not able to install the application on the second instance, > because both instances running on same ADB port and the second > instance has no unique [ID] to access it (e.g. calling "adb -d [ID] > install bin/myapp.apk"). > > -- my questions -- > Has anyone an idea how to fix the problem? > How I can force the emulator to use an unique ADB port or unique ID > for each instance? > > -- reference documentation -- > http://code.google.com/android/reference/emulator.html#multipleinstances > http://code.google.com/android/reference/adb.html#directingcommands > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

