Skip to main content

Posts

Showing posts from April, 2018

Featured post

Simple RecyclerView example with filter option in Android

Hi Guys, Maybe you all are expert in terms of using RecyclerView in android. This blog is simple example for using filter option with RecyclerView adapter. As for now you will instantiate RecyclerView and set the adapter to RecyclerView as following way. RecyclerView list = (RecyclerView) findViewById(R.id.list); list.setLayoutManager(new LinearLayoutManager(this)); list.setHasFixedSize(true); ArrayList&ltNumber&gt numbers = new ArrayList&lt&gt(); String ONEs[] = {"ZERO", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE", "TEN"}; String TENs[] = {"ZERO", "TEN", "TWENTY", "THIRTY", "FOURTY", "FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY", "HUNDRED"}; String HUNDREDS[] = {"ZERO", "HUNDRED", "TWO HUND

Simple Example of Firebase Authentication in Kotlin

Here is the simple example of Authentication process using Firebase in Kotlin Programming Language . Step 1. Login into Firebase Console and create your project. Step 2. Navigate into Authentication and enable your preferred login methods. Step 3. Create your Android project and add the following classpath into root of the project's build.gradle. classpath 'com.google.gms:google-services:3.1.1' Step 4. And then add the following plugin into your module's build.gradle. apply plugin: 'com.google.gms.google-services' Step 5. And then add the following dependency into your module's build.gradle. implementation 'com.firebaseui:firebase-ui-auth:3.3.1' That's you wanted to access the Firebase's Authentication API in your project. Here is the methods to Sign In, Sign Out and delete the account. Sign In private fun signIn() { // Choose authentication providers val providers = Arrays.asList(AuthUI.IdpConfig.GoogleBuilde