在一个类中
<strong><span style="font-size:18px;"> Intent inte = new Intent("com.jieshou.yongyong");</span></strong>
<strong><span style="font-size:18px;">//回调函数回传一个标志给它要它做出改变
// gContext.sendBroadcast(inte);</span></strong>
<strong><span style="font-size:18px;">
</span></strong>
在另一个类中
<strong><span style="font-size:18px;">
//广播接受回来的数据
// IntentFilter intentFilter = new IntentFilter();
// intentFilter.addAction("com.jieshou.yongyong");
// getContext().registerReceiver(new BroadcastReceiver() {
// @Override
// public void onReceive(Context context, Intent intent) {
// 接受回来要实现的方法
setMyAppointment(appointmentdata);
// }
// }, intentFilter);</span></strong>