Building a Android Mobile App with Firebase

In this tutorial, I will show you how to create a simple to do list app using android and Firebase.

Download the required software packages

Download and install Android Studio and Android SDK.

Android Studio + SDK – http://developer.android.com/sdk/index.html

Setting up your development environment

Open your Android Studio and choose Start a new Android Studio project.

Start a new Android Studio project

Start a new Android Studio project

Enter your custom Application name, Company Domain and select Project location. Click Next.

Configure your new project.

Configure your new project.

Select Phone and Tablet. Make sure API 15 selected. Click Next.

Configure your new project.

Configure your new project.

Select Empty Activity and click Next.

Add an activity to Mobile.

Add an activity to Mobile.

Click Finish.

Customize the activity.

Customize the activity.

Sign up for your new account here, https://www.firebase.com/.

Firebase

Firebase

Click Create New Project.

Create New Project

Create New Project

Project name: ToDoList

Country/region: Malaysia

Click Create Project.

Create New Project

Create New Project

Open build.gradle.

build.gradle.

build.gradle.

Add compile com.google.firebase:firebase-core:9.4.0 to your build.gradle and sync.

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'com.google.firebase:firebase-core:9.4.0'
}

Your app must request the INTERNET and ACCESS_NETWORK_STATE permissions, if it isn’t doing so already. Add the following lines inside the tag in yourAndroidManifest.xml:

Will be continue…

 

Leave a Reply

Your email address will not be published. Required fields are marked *