package com.aoleyun.sn.utils; import android.content.Context; import android.content.Intent; import android.provider.Settings; import android.text.TextUtils; import com.aoleyun.sn.comm.JGYActions; import com.aoleyun.sn.service.main.MainService; public class BootManager { private Context mContext; private final static String TAG = BootManager.class.getSimpleName(); public BootManager(Context context) { this.mContext = context; } public void start() { sendLauncherIcon(); timeControlUpdate(); JGYUtils.getInstance().onBootSendNetwork(); JGYUtils.getInstance().onBootSetAppInsideWeb(); } private void sendLauncherIcon() { String packageList = Settings.System.getString(mContext.getContentResolver(), JGYActions.ACTION_JGY_SHORTCUTLIST); if (TextUtils.isEmpty(packageList)) { Settings.System.putString(mContext.getContentResolver(), "qch_launcher_icon_app", ""); } } private void timeControlUpdate() { Intent intent = new Intent(); intent.setAction(MainService.TimeChangedReceiver.ACTION_UPDATE); mContext.sendBroadcast(intent); } }