Using data fetched in one Activity in another Activity

前端 未结 4 1335
無奈伤痛
無奈伤痛 2021-01-06 23:54

I get certain data like say userName in Activity_1 from a web server. Then i want to use the same data in Activity_2

so i made

4条回答
  •  独厮守ぢ
    2021-01-07 00:55

    The intent is saved so the correct answer is to use putExtra. When your activity needs to be reinstantiated, it will be created again using the intent.

提交回复
热议问题