From the course: Building Android Apps with AWS
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Create AWS provider class
From the course: Building Android Apps with AWS
Create AWS provider class
- [Instructor] In order to allow our code to communicate with Amazon Web Services, I'm gonna follow an example that Amazon uses in their starter project and I'm actually gonna create a singleton class that can instantiate all of the necessary objects, and I'm gonna call that class AWS Provider. I'm gonna create that in the utilities folder here. Go to new Kotlin file, call AWSProvider. Make sure that I have object selected and hit OK. Then I'm gonna do just a little bit of setup here in this class so that we can access it statically. I'm first gonna create an instance property. Then I'm gonna create a little accessor method so that we can retrieve that instance called getInstance. And then I'm also gonna create a couple quick methods for initializing that instance. The first one I'm gonna call getAWSProvider. I'm gonna pass it a context. Just have it return this. Need to make sure that I import that context file. And then I'm also gonna add an initialize function. Gonna pass that the…
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)
-
-
-