Hi Jerry, I have tested this solution. But unfortunately it seems not work.
I wanna know the list device name with command "adb devices", which could be used as the serial number in the command "adb -s serial_number shell" to login shell, but the constants in class Build doesn't contain this information. So any other comments? Thanks, Stanley On Feb 4, 11:35 am, "Stanley.lei" <[email protected]> wrote: > Thanks a lot. I will have a try. > > Stanley > > On Feb 4, 10:58 am, "Jerry Yang" <[email protected]> wrote: > > > I believe this link may helpful for > > u.http://code.google.com/android/reference/android/os/Build.html > > With best wishes > > Jerry > > > -----Original Message----- > > From: [email protected] > > > [mailto:[email protected]] On Behalf Of Stanley.lei > > Sent: Wednesday, February 04, 2009 10:22 AM > > To: Android Developers > > Subject: [android-developers] How to acquire device name with code > > > Hi, > > > As we know, when we connect the G1 phone with USB, we could use "adb > > devices" to show its device name. My question is whether there is a > > method to detect this device name in phone with code, or how to judge > > the "device name" is the just "myself" with code? > > > Any comment will be appreciated. > > > Thanks, > > > Stanley > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

