Skip to main content

Posts

Showing posts with the label Login

Sign In with Google in Your Android Apps Example with Code in Android Studio

1. Prerequisites

Before beginning, check that you have all the necessary pre-requisites. These include: Android StudioAn Android Device that runs Android 4.2.2 or later    -or-   A configured Android Emulator (this is available in Android Studio)The latest version of the Android SDK including the SDK tools component. You can get this from the Android SDK Manager in Android Studio.The Google Play Services SDK. You can get this from the Android SDK Manager in Android Studio.

2. Enabling Sign-In for your App
Before you start coding any of the Android functionality, you need to turn on the Sign-In APIs for your App in the Google Developer’s console. You’ll see how to do that in this section. Create a Project
To create a project, visit the developer’s console at: https://console.developers.google.com/project.
Press the ‘Create Project’ button, and you’ll see a popup like this:

Enter a meaningful name for your project in the ‘Project name’ box. For the project ID, you’ll need to enter something tha…