开发者

how to get Carrier details on mango?

开发者 https://www.devze.com 2023-03-25 21:42 出处:网络
Is there any API which can gives us phone is on which carrier(ex: vodafone)? home country, current country, detai开发者_StackOverflow中文版ls?

Is there any API which can gives us phone is on which carrier(ex: vodafone)? home country, current country, detai开发者_StackOverflow中文版ls?

I couldn't find any such in Microsoft.Phone.Net.NetworkInformation, am i missing something?

Thanks for help.


You can get this via the static property DeviceNetworkInformation.CellularMobileOperator.

Remember that there may not always be one - in which case it returns null.

You can also get the device name and manufacturer or the current country via the Location services.

The nearest you'de be able to get to a "home country" would be via the regional settings.


In Mango, i.e. the next release, does have a static class called DeviceNetworkInformation It provides CellularMobileOperator which is the name of the carier.

0

精彩评论

暂无评论...
验证码 换一张
取 消