DownloadManager.java 文件源码

java
阅读 38 收藏 0 点赞 0 评论 0

项目:sms_DualCard 作者:
@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);
            }
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号