User is logged in or not

Hi there i wanna know how can i check the user is logged in or not instead of using the code below

Backendless.UserService.login( username, password, new AsyncCallback<BackendlessUser>()
{
 public void handleResponse( BackendlessUser user )
  {
    // user has been logged in, now user properties can be updated

the problem with the code is i need email and password to log in the user

Hello,

If you use the login API which takes the stayLoggedIn argument and you set that argument to true, then subsequently you can check if the user is logged in using the isValidLogin API:
https://backendless.com/docs/android/users_login.html#validating-user-login

Regards,
Mark