android 广播传参数

引用:http://www.189works.com/article-30243-1.html

发送代码:
  1. Intent intent = new Intent(...);  
  2. Bundle bundle = new Bundle();  
  3. bundle.putString("param""value");  
  4. intent.putExtras(bundle);  
  5. context.startActivity(intent); 或 context.startService(intent);  
 
接收代码:
  1. Bundle bunde = intent.getExtras();  
  2. String name = bunde.getInt("param");
原文地址:https://www.cnblogs.com/sode/p/2560797.html