2. Have connected with Firebase manually or via Firebase Assistant (See [Connecting to Firebase](guide/src/pages/android-development/firebase/connecting-to-firebase)).
It is recommended that you do this so as to not be confused by partial instructions related to this in the docs mentioned below.
## Setting it up with Android Studio
After adding Firebase to your project, you will need to add extra dependencies and do some other things in order to setup
the Firebase Authentication for Google sign-in. There are following documentation about this:
It is important that after you connect your project to firebase you should specify SHA-1 fingerprint, do so from the Settings page of the Firebase console.
* [Enable Google Sign-In in the Firebase console]
1. In the Firebase console, open the Auth section.
There are four steps that must be followed for the sign-in:
1. Integrate Google Sign-In bt following the link attached [Integrating Google Sign-In into Your Android App page](https://developers.google.com/identity/sign-in/android/sign-in) this helps in setting up the login button, checking for existing users etc. When you configure the GoogleSignInOptions object, call requestIdToken:
```
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
2. In your sign-in activity's onCreate method, get the shared instance of the FirebaseAuth object:
```
private FirebaseAuth mAuth;
// ...
// Initialize Firebase Auth
mAuth = FirebaseAuth.getInstance();
```
3. It is important to check if the a user has already participated and initialized his gmail account with application hence onStart you need to test the user status:
```
@Override
public void onStart() {
super.onStart();
// Check if user is signed in (non-null) and update UI accordingly.
4. Finally, after a user successfully signs in, get the ID token from the GoogleSignInAccount object, exchange it for a Firebase credential, and authenticate with Firebase using the Firebase credential, without this step your user details will not be logged in the Firebase Auth user list: