private Bundle getData() {
TelephonyManager manager = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
CellLocation location = manager.getCellLocation();
Bundle data = new Bundle();
if (location instanceof GsmCellLocation) {
GsmCellLocation gsmLocation = (GsmCellLocation) location;
gsmLocation.fillInNotifierBundle(data);
data.putInt(TYPE, TelephonyManager.PHONE_TYPE_GSM);
} else if (location instanceof CdmaCellLocation) {
CdmaCellLocation cdmaLocation = (CdmaCellLocation) location;
cdmaLocation.fillInNotifierBundle(data);
data.putInt(TYPE, TelephonyManager.PHONE_TYPE_CDMA);
} else {
data.putInt(TYPE, TelephonyManager.PHONE_TYPE_NONE);
}
return data;
}
CellTowerProbe.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:funf-v4
作者:
评论列表
文章目录