how to get Carrier details on mango?

匿名 (未验证) 提交于 2019-12-03 02:29:01

问题:

Is there any API which can gives us phone is on which carrier(ex: vodafone)? home country, current country, details?

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

Thanks for help.

回答1:

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.



回答2:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!