synchronized static void sOnSignalStrengthsChanged(SignalStrength signalStrength) {
mData.setTime(System.currentTimeMillis());
mData.setSignal(signalStrength);
if (OtherUtils.isThisDeviceAnEmulator() == true) {
// The signal will usuaully be null on the Emulator...
} else {
// On a real device... there should generally be a signal...
SKPorting.sAssert(CellTowersDataCollector.class, mData.getSignal() != null);
}
try {
mData.setCellLocation(mTelManager.getCellLocation());
} catch (SecurityException e) {
// Seen - rarely - on some Android devices.
// Neither user 99999 nor current process has android.permission.ACCESS_COARSE_LOCATION.
SKPorting.sAssert(CellTowersDataCollector.class, false);
}
}
CellTowersDataCollector.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:skandroid-core
作者:
评论列表
文章目录