RadioInfo.getCurrentNetworkName()给一个空值? [英] RadioInfo.getCurrentNetworkName() giving a null value?
问题描述
我使用RadioInfo.getCurrentNetworkName()来获取BlackBerry设备的操作员姓名。因为现在当我注意到,对于一个给定的设备,这个函数返回一个空值这是工作的罚款。使用的code是以下内容:
I am using RadioInfo.getCurrentNetworkName() to get the operator name in the blackberry device. It is working fine since now when I noticed that for a given device, this function is returning a null value. The code used is the following:
String operator = "";
try { operator = RadioInfo.getCurrentNetworkName(); } catch (Exception ex) { }
Dialog.alert(operator);
警报给出了一个空值。所以我想获取网络名称时,抛出一个异常。有什么可以这背后的原因是什么?!
The alert gives a null value. So i guess an exception is thrown when getting the network name. What can be the reason behind this?!
由于提前,
推荐答案
据API文档getCurrentNetworkName()返回:
运营商网络的名称,或NULL,如果设备没有注册的网络上
According to the API documentation getCurrentNetworkName() returns: The name of the carrier network, or null if the device is not registered on any network
时置备的蜂窝网络上有问题的设备
Is the device in question provisioned on a cellular network?
这篇关于RadioInfo.getCurrentNetworkName()给一个空值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!