Skip to content Skip to sidebar Skip to footer

How Can I Retrieve User's Login Id From Mysql Using Global Variable In My Android App?

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 carry

Solution 1:

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

Post a Comment for "How Can I Retrieve User's Login Id From Mysql Using Global Variable In My Android App?"