Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Owners Name

I'm porting an iPhone game to Windows Phone 7, and I'm wondering how I would go about getting the phone's name? Like, on the iPhone it would be the name you had set it to in iTunes, and that's also readable in the API with (obj-c..) [[UIDevice currentDevice] name]..

Anyone know the equivalent WP7 .NET methods/properties? I can't find them on MSDN.

like image 995
Kalen Avatar asked Jun 30 '26 16:06

Kalen


1 Answers

You can get the manufacturer specified name of the device via:

Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceName").ToString();

Note that "There is no standard format for this string. This value may be empty."

More at: http://msdn.microsoft.com/en-us/library/ff941122(VS.92).aspx

like image 110
Matt Lacey Avatar answered Jul 03 '26 05:07

Matt Lacey