I am trying to implement a login system using the Android Studio LoginActivity template. On AppEngine, I try the two lines:
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
but the user is always null. How is it supposed to function and be implemented? I mean, does UserService class only work when integrating the Login with Google Accounts?
If yes, what is the best and smartest way for me to implement a customized login system?