public CellLocationEx getLastCellLocation(){
if (mPhoneState.lastKnownMMCCellLocation != null)
return mPhoneState.lastKnownMMCCellLocation;
CellLocation cellLoc = telephonyManager.getCellLocation();
if (cellLoc != null)
{
LoggerUtil.logToFile(LoggerUtil.Level.DEBUG, TAG, "getLastCellLocation", "null cell, getCellLocation() = " + cellLoc.toString());
CellLocationEx mmcCell = new CellLocationEx(cellLoc);
try {
processNewCellLocation(mmcCell);
} catch (InterruptedException e) {
}
return mmcCell;
}
LoggerUtil.logToFile(LoggerUtil.Level.DEBUG, TAG, "getLastCellLocation", "null cell, getCellLocation() = null");
return null;
}
LibPhoneStateListener.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:android-QoS
作者:
评论列表
文章目录