How do I change the name of my Android device? My Android device is the Nexus One.  But this should apply to all current Android devices.

How do I change the name of my Android device?

When I connect to my wireless router's client tables, my android devices is listed for example as: android_1234567890abedfc.  I'd like to give it a more readable name.
To change the hostname (device name) you have to use the terminal (as root):

For Eclair (2.1):
echo MYNAME > /proc/sys/kernel/hostname

For Froyo (2.2): (works also on most 2.3)
setprop net.hostname MYNAME

Then restart your wi-fi. 
To see the change, type uname -a

some devices needs reboot for work!