Skip to content

Il-Mil1/AWS-for-Android

Repository files navigation

How to use AWS in an Android application

First of all create an AWS account

Here: https://aws.amazon.com

Setting up the server

Source: Installation and configuration of the server
Install Node.js and NPM if you don't have them. Open the terminal and use this command:
  • npm install -g @aws-amplify/cli
  • amplify configure
  • It will open a web page where is require the login.
  • Press enter after you have signed in
  • Select the region of the server
  • Select the user name (if you press enter it will take the one in brackets)
  • It will open a new web page with the user, next: permissions, next: tags, create a tag, create user.
  • Go back to the terminal (do not close the web page) and press enter
  • Give the access key id that you have in the web page, press enter
  • Same thing with the secret access key
  • Decide if you want to update or create the AWS Profile in your local machine (press enter for "default" has the name)

    Initialization of Amplify

  • amplify init
  • Enter a name for the project (enter and it will take the previous one)
  • Enter a name for the environment
      Choose your default editor: (Select one)
    • Visual Studio Code
    • Atom editor
    • Sublime Text
    • Intellij IDEA
    • Vim (Mac OS only)
    • Emacs (Mac OS only
    • None
      Choose the type of app that you're building (Select one)
    • Android
    • IOS
    • Javascript
  • Where is your Res directory? (The defual one is app/src/main/res)
  • Do you want to use an AWS profile? (The one from early).

    Add the API for authentication

  • amplify add auth
  • Do you want to use the default authentication and security configuration? I selected the default one
      Select how user will be able to sign in
    • Username
    • Email
    • Phone number
    • Email and Phone Number
  • Amplify push for pushing the changes and the creation of the server and reply Y

    Look at the android application from now on

    If you want to see the console of the user pool type in the terminal amplify auth console

  • About

    Example of how to use AWS Amplify and S3

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages