Android Question user validation for registration & current user ID

SCIS

Active Member
Licensed User
Longtime User
Dear,

user validation:

Do you have a code i can use for user validation in my registration page.
I need to get the username from the sql database to compare it with the username that is filled in into the registration page.
I need to check if the username typed in by the user already exists in the sql database. If the username already exists i need to give an error and if the username does not yet exists the registration need to be succesfull

current user ID:

If the user is logged in, how do I save their information throughout the whole app (for ex: their profile)?
So I can request their information anytime like the current user ID.

thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…