原因: context.registerReceiver()不能在BroadcastReceiver的onReceive()里面调用 解决: 提高context的级别 context.getApplicationContext().registerReceiver()