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.zbroadcastreceiver.receivers; /*from w ww. j a va2 s.c o m*/ 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); } }