似乎这个做登录或是论坛回复很好的。
不用返回。
一下几点需要注意的。
使用跳转的时候采用
A的activity中
Intent intent=new Intent();intent.setClass(A.this, B.class); Bundle bundle=new Bundle();String str1="AAA"; bundle.putString("str1", str1);intent.putExtras(bundle); startActivityForResult(intent, 0);//这里的0是一个依据值,但是必须大于等于0


另外Aactivity中也需要对onActivityResult方法进行复写。
判断依据为resultCode,

第三在Bactivity中也需要
setResult(RESULT_OK, i);

其后,将自己finish掉,android系统会自动将页面跳转到Aactivity去。

更多相关文章

  1. 安全新手入坑——HTML标签
  2. Nginx系列教程(四)| 一文带你读懂Nginx的动静分离
  3. Nginx系列教程(六)| 手把手教你搭建 LNMP 架构并部署天空网络电影
  4. Intent 实现页面之间的跳转
  5. android状态机机制StateMachine
  6. android 4.0 android.os.NetworkOnMainThreadException
  7. android 横竖屏切换与数据保存
  8. ButterKnife基本使用
  9. android的事物

随机推荐

  1. Unable to resolve target 'android-5'
  2. Android(安卓)Layout 布局属性全解
  3. android编译出现Invoke-customs are only
  4. android相对布局中控件的常用属性
  5. Android(安卓)画图常用类
  6. Android(安卓)Studio下载地址[国内可下载
  7. 补间动画
  8. Android中Cursor类的概念和用法
  9. 安卓开发---进度条
  10. Android:获取设备ID、型号等