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

后端 未结 4 555
南笙
南笙 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:54

    You can use a database, SharedPreferences, Application, Static Methods and more for share data between Activitys. Look here

提交回复
热议问题