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
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