how can I retrieve user's login id from mysql using global variable in my android app?

前端 未结 1 1389
逝去的感伤
逝去的感伤 2021-01-28 08:10

I am very new in android.In my app I want when a user login that user\'s id is carried all activity.Like a session management.That user id comes from mysql database.I want to ca

1条回答
  •  旧时难觅i
    2021-01-28 09:01

    Android apps are not web apps so yo don't need to "carry" anything.

    If you need to store the userId to be shared with different activities, you can put it in SharedPreferences.

    SharedPreverences doc

    0 讨论(0)
提交回复
热议问题