首页 > TAG信息列表 > BActivity
startActivityForResult跳转后回调数据
从AActivity向BActivity跳转后,关闭BActivity并向AActivity回调一些数据: 建立AActivity.java文件: 1 public class AActivity extends AppCompatActivity { 2 private Button btnJump; 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5Activity通过bundle传递数据
从AActivity.java向BActivity.java传递数据: 建立AActivity.java文件建立bundle: 1 public class AActivity extends AppCompatActivity { 2 private Button btnJump; 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.onCre