Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API to get the friendly name of your Windows Phone 8 device?

Is there a way to get the name of your phone? The name you see in Windows Explorer properties as the device name?

I have looked at Microsoft.Phone.Info.DeviceStatus.DeviceName but that appears to be different. I have looked at DeviceExtendedProperties but that is mostly deprecated now.

The phone prompts you for this name during setup. I can also see this name and change it in the WinRT App for WP8 preferences. But I'm not seeing a way to get it by API.

(I would like this name so that I can pass it on to a web service that shows a device list)

like image 398
Andy Weston Avatar asked Jan 25 '13 22:01

Andy Weston


2 Answers

Windows.Networking.Proximity.PeerFinder.DisplayName will give you the name the user has given to the phone

like image 141
Richard Avatar answered Nov 20 '22 18:11

Richard


I don't think that the base API has anything that will allow you to do that, probably due to security concerns!

like image 24
Pedro Lamas Avatar answered Nov 20 '22 19:11

Pedro Lamas