Back to project page android-training-tutorial.
The source code is released under:
MIT License
If you think the Android project android-training-tutorial listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package im.ene.dev.zbroadcastreceiver2.receivers; //from w w w .ja v a 2s.c om import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class CustomBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (mInterface != null) mInterface.onBroadcastReceiveUpdateUI(intent); } private OnBroadcastReceiveListener mInterface; public void setOnBroadcastReceiveListener(OnBroadcastReceiveListener intf) { this.mInterface = intf; } public interface OnBroadcastReceiveListener { public abstract void onBroadcastReceiveUpdateUI(Intent intent); } }