This may help you:
http://stackoverflow.com/questions/2214377/how-to-get-serial-number-or-id-of-android-emulator-after-it-runs

On Jan 14, 8:58 am, Kostya Vasilyev <[email protected]> wrote:
> The "emulator-xxx" you're seeing in "adb devices" output is what you use
> with the adb "-s" switch.
>
> This works:
>
> adb -s emulator-5554 install <path_to_apk>
>
> -- Kostya
>
> 2011/1/14 hobbykochma <[email protected]>
>
>
>
>
>
>
>
> > Dear group members,
>
> > I have a question related to installing an APK file with the command
> > adb -install:
>
> > We have created via commandline a set of AVDs and we have started a
> > set of devices which run in an emulator. For all of the devices we
> > know the corresponding <avd-name>.
>
> > The result of the command "adb services" is now something like [1].
>
> > Now we would like to install an application inside the device
> > belonging to <avd-name>.
>
> > But having the <avd-name> the apk-file could not be installed. For
> > this we need the serialnumber.
>
> > How can we find the serialnumber, if we know the <avd-name>?
>
> > Thanks for a hint.
>
> > Best Regards
>
> > Frank
>
> > [1]
>
> > $ adb devices
> > List of devices attached
> > emulator-5554  device
> > emulator-5556  device
> > emulator-5558  device
> > ...........
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to