From the course: Building Android Apps with AWS
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Set up user sign out
- [Instructor] Now that we can sign into our ListMaker app using an email address, the next thing that I'm gonna add is the ability to sign out. And we don't actually need to set up anything different in the backend to implement the sign out feature, we just need to use the SDK to call the appropriate methods to handle signing out. So I wanna add a sign out button to the action bar. So I'm starting here in the menu resource for the main activity and I'm just gonna add a menu item. I'm gonna call that menu_main_signout. And I want the title just to be Sign Out. And then under showAsAction, I'm just gonna make sure to select ifRoom and withText. So now I can go into the main activity and I wanna handle the action for that menu item. So I just need to override the onOptionsItemsSelected method and I just like to make sure that I check and make sure what the item is, even though we only have one item. I wanna make sure it's the right one. And then right here is where we need to be able to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Create AWS provider class3m 18s
-
(Locked)
Set up user sign in on AWS5m 45s
-
(Locked)
Set up user sign in on list maker app4m 54s
-
(Locked)
Create user account2m 3s
-
(Locked)
Set up user sign out3m 26s
-
(Locked)
Handle sign-out action2m 1s
-
(Locked)
Set up Facebook sign in on AWS5m 37s
-
(Locked)
Set up user sign in with Facebook4m 8s
-
(Locked)
Set up Google sign in on AWS6m 9s
-
Set up user sign in with Google1m 57s
-
(Locked)
-
-
-