how to use variable while calling new activity in intent?

后端 未结 7 1598
失恋的感觉
失恋的感觉 2021-01-22 01:08

i have following code to call new activity

now i want to use variable to call new activity

String var1,var2,var3; var1=\"Login\"; var2=\"Signup\"; var3=\"more

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-22 01:56

    If you want to add data, you'll have to use a different Intent constructor:

    public Intent(String  action, Uri  uri, Context  packageContext, Class  cls)
    

    In the uri you can put your own information. See this link for more details.

提交回复
热议问题