public class MyBroadcastReceiver extends BroadcastReceiver {
public static final String TAG = "MyBroadcastReceiver";
public static int m = 1;
@Override
public void onReceive(Context context, Intent intent) {
Log.w(TAG, "intent:" + intent);
String name = intent.getStringExtra("name");
Log.w(TAG, "name:" + name + " m=" + m);
m++;
Bundle bundle = intent.getExtras();
}
}
public class MyBroadcastReceiver extends BroadcastReceiver { public static final String TAG = "MyBroadcastReceiver"; public static int m = 1; @Override public void onReceive(Context context, Intent intent) { Log.w(TAG, "intent:" + intent); String name = intent.getStringExtra("name"); Log.w(TAG, "name:" + name + " m=" + m); m++; Bundle bundle = intent.getExtras(); } }