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

发送代码:
  1. Intentintent=newIntent(...);
  2. Bundlebundle=newBundle();
  3. bundle.putString("param","value");
  4. intent.putExtras(bundle);
  5. context.startActivity(intent);或context.startService(intent);
接收代码:
  1. Bundlebunde=intent.getExtras();
  2. Stringname=bunde.getInt("param");

更多相关文章

  1. Android(安卓)Broadcast receiver 编程
  2. android沉浸式状态栏
  3. Androidの发送Email
  4. android 发送邮件
  5. android中用Spannable在TextView中设置超链接、颜色、字体
  6. Android架构分析之JNI
  7. android ORM 关系映射 ormLite
  8. 史上最详细的Android(安卓)Studio系列教程三--快捷键
  9. Android(安卓)定制万能Adapter

随机推荐

  1. android 动画自动播放
  2. Android应用框架之应用启动过程详解
  3. Android从相机或相册获取图片裁剪
  4. Android:Changes to the SecretKeyFactory
  5. android一种较为复杂的布局
  6. 浅析android下如何通过jni监控wifi网络连
  7. Android中定时器的3种实现方法
  8. Android 使用ContentProvider 添加联系人
  9. Android service生命周期详解
  10. 巧妙均分TabLayout tab