send Local Broad Cast - Android android.support.v4.content

Android examples for android.support.v4.content:LocalBroadcastManager

Description

send Local Broad Cast

Demo Code

import android.content.Context;
import android.content.Intent;
import android.support.v4.content.LocalBroadcastManager;

public class Main {

  public static void sendLocalBroadCast(Context context, Intent intent) {
    LocalBroadcastManager manager = LocalBroadcastManager.getInstance(context);
    manager.sendBroadcast(intent);/*from  w  ww  .j a  v  a2  s . c  om*/
  }

}

Related Tutorials