How to pass value from 1st activity to 3rd activity

前端 未结 7 1987
暖寄归人
暖寄归人 2020-12-12 07:25

I wish to pass the value from 1st activity to 3rd activity.

My 1st activity: CustomizedListview

2nd activity is: SingleMenuItemActivity

3rd activity

7条回答
  •  眼角桃花
    2020-12-12 08:14

    Try this

     Intent intent=new Intent(CustomizedListview.this,InsertionExample.class);
     intent.putExtra("orderid",getOrderid);
     startActivity(intent);
    

    In your third activity

     Bundle bundle = data.getExtras();
     String getOrderId = bundle.getString("orderid");
    

提交回复
热议问题