Posts

Showing posts from October, 2020

Firebase Integrate Google Account Sign-in

Image
 useful blogs & videos :  IMP : https://firebase.google.com/docs/auth/android/google-signin https://youtu.be/-tCIsI7aZGk ------------------------------------------------------------------------------------------------------- 1]  Add the required dependencies first  :  dependencies { // Import the BoM for the Firebase platform implementation platform( 'com.google.firebase:firebase-bom:26.0.0' ) // Declare the dependency for the Firebase Authentication library // When using the BoM, you don't specify versions in Firebase library dependencies implementation 'com.google.firebase:firebase-auth' // Also declare the dependency for the Google Play services library and specify its version implementation 'com.google.android.gms:play-services-auth:18.1.0' } 2]  Add the SHA-1 id into the Firebase App settings . (Get the SHA -1 id from the Gradle Tab at the Top right corner of android studio & paste inside the firebase settings) 3] Fo...

Email & Password Validation using TextInputLayout & REGEX

Image
 useful video & blogs :  IMP 2 VIDEOS -  1] https://youtu.be/rTlRWbaQmko 2] https://youtu.be/Oi0vF34_azo https://www.journaldev.com/14748/android-textinputlayout-example --------------------------------------------------------------------------------------------------- IMPORTANT NOTES :  trim( ) method removes spaces before and after the string. Android TexInputLayout extends LinearLayout. The primary use of a TextInputLayout is to act as a wrapper for EditText(or its descendant) and enable floating hint animations. Rule of Thumb  : TextInputLayout should wrap  TextInputEditText  instead of the normal  EditText . Reason? TextInputEditText is a sub-class of EditText and is designed for use as a child of TextInputLayout. Furthermore, using an EditText instead would shoot us a warning :  EditText added is not a TextInputEditText. Please switch to using that class instead . TextInputLayout has much more to offer than just displaying floating ...