@Override
public void onReceive(Context context, Intent intent) {
if (TelephonyIntents.ACTION_SERVICE_STATE_CHANGED.equals(intent.getAction())) {
if (LOCAL_LOGV) {
Log.v(TAG, "Service state changed: " + intent.getExtras());
}
ServiceState state = ServiceState.newFromBundle(intent.getExtras());
boolean isRoaming = state.getRoaming();
if (LOCAL_LOGV) {
Log.v(TAG, "roaming ------> " + isRoaming);
}
synchronized (sInstance) {
mAutoDownload = getAutoDownloadState(mPreferences, isRoaming);
if (LOCAL_LOGV) {
Log.v(TAG, "mAutoDownload ------> " + mAutoDownload);
}
}
}
}
DownloadManager.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:sms_DualCard
作者:
评论列表
文章目录