how to directly pass value of a variable from 1st activty to 3rd activity using putextra?

后端 未结 4 546
南笙
南笙 2021-01-24 12:09

how to directly pass value of a variable from 1st activity to 3rd activity using putextra?

For example:

I have a variable A in the first screen (first activity)

4条回答
  •  攒了一身酷
    2021-01-24 12:37

    Actually its not possible to go from 1st activity to 3rd directly...

    You must have to follow the activity stack..

    So if you want the data to be passed from 1st to 3rd follow by

    1st -> 2nd -> 3rd

    with the use of intent suggested by @Lalit Poptani

提交回复
热议问题