使用Braodcast Receiver 一.新建一个空的工程,命名为LearnBroadcastReceiver 二.为主界面添加一个按钮 三.新建一个broadcast receiver,命名为MyReceiver,并添加如下所示代码 public void onReceive(Context context, Intent intent) { // TODO: This method is called when the BroadcastReceiver is receiving //…