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

前端 未结 7 1999
暖寄归人
暖寄归人 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:08

    Make the value static, and then use it in the 3rd activity

    public static int i;
    

    And then, call it on the 3rd activity:

    firstActivity.i;
    

提交回复
热议问题