How do I change the Device Name of my Nexus 7 2013 when connecting to a hotspot? How do I change the Device Name of my Nexus 7 2013 (not rooted)?

On my Samsung Galaxy S4 hotspot, the Nexus 7 shows up as android-xxx, where xxx is some random sequence of characters. How do I change the name to something like geffchang-nexus7?
Unless the OEM has built in the option (Samsung have for example) you cannot change the device name without root. The nexus-7 does not have this option. 

On the Samsung Galaxy S4 (for example) you can go to Settings > More > About Device > Device Name and you can change it directly from there. 

For those with root:

 su
 getprop net.hostname
 setprop net.hostname &lt;new_hostname&gt;


Or simply download a build.prop editor app from the play store.  This requires Root also. WARNING: Any changes to this file can stop your device from working or cause unexpected behaviour, do so at YOUR OWN RISK.



To change Hotspot name:

Go to 


  Wireless &amp; Networks > Tethering &amp; Portable hotspot.




Then 


  
    Tick the box next to Portable Wi-Fi hotspot
    Tap Portable Wi-Fihotspot settings and you can edit the Wi-Fi network
    name, and choose a password.
  




Enter your name there!