3

Possible Duplicate:
How do I change the name of my Android device?

It has a really long cryptic name. I want to rename it to something shorter.

Sheehan Alam
  • 233
  • 1
  • 3
  • 7
  • Do you want to do this programmatically? –  Sep 08 '10 at 04:34
  • @Michael I don't think so. This guy just asked this http://stackoverflow.com/questions/3664630/my-app-just-crashed-how-can-i-get-the-crash-log some minutes ago. He wants to change the name of his handset. @Sheeham I think it does not worth the effort though; you can always use copy&paste or create an alias (or direct access if you use Windows). –  Sep 08 '10 at 04:42
  • i just want to rename it, so i can type a shorter name into my terminal when im debugging. – Sheehan Alam Sep 08 '10 at 04:47
  • 1
    You don't need to retype at all, pressing the "up button" on most Linux terminals and Windows' command prompt will give you the previous commands you have typed. Also, Copy-pasting in Linux terminal is easy, just select the text and middle click. Copy pasting in Windows' command prompt is more tricky, but doable: http://www.softwaretipsandtricks.com/windowsxp/articles/124/1/Command-Prompt--Quick-edit-mode. Alternatively, just unplug the devices/emulator you're not using. Alternatively, if you're using Eclipse, you can set which device you want to debug on. – Lie Ryan Jan 16 '11 at 07:46

1 Answers1

1

If you are talking about when you do:

abd -s device-serial-number command

Then you can do this if it is the only device connected via USB:

adb -d command

But that will only work if you have just one device connected via USB, if there are more than one android devices connected via USB, it will return the "multiple devices" error.

Ryan Conrad
  • 22,673
  • 9
  • 58
  • 81