ComponentName receiver = new ComponentName(context, myReceiver.class);PackageManager pm = context.getPackageManager();pm.setComponentEnabledSetting(receiver,
        PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
        PackageManager.DONT_KILL_APP)这段代码应该可以帮助你,主要就是在复选框那里,根据当前状态,对Receiver进行设置,ENABLE或者DISABLE