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

前端 未结 7 1981
暖寄归人
暖寄归人 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");
    
    0 讨论(0)
提交回复
热议问题