Logged in user

0 votes
hi, i want to know what does Appp42apt.getLoggedinuser() return if there is no logged in user i want to make something like this, if the user kills the app and restarts, the app should gete the logged in user and redirect to the home activty, else it should go to the login activities. any help would be appreciated. thankyou
asked Apr 28, 2016 in Android by checker.kshitij (10 points)

1 Answer

0 votes

Hi Checker,

Greetings!!!

In latest Android SDK if you have not set LoggedInUser, device Id is treated as a loggedIn user and returns the same.But in previous SDK it returns null value. We don't save loogedIn user in SDK side. So whenever application restarts it do the same functionality.

You can save the userName in preferences and make validation as per your application business logic when application restarts.

Let me know if it helps.

 

Thanks

Vishnu Garg

answered Apr 29, 2016 by Vishnu Garg (674 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...