How to get Android device name? I am using HTC desire. When I connected it via HTC Sync the software is displaying the Name ‘HTC Smith’ . I would like to fetch this name via code. How is this possible in Android? Answer In order to get Android device name you have to add only a single line of code: