Android Firebase Cloud Messaging Example

What is Firebase Cloud Messaging? It is a service provided by Google. Google says  “Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.” So it is free and at the same time easy to use. Previously we were using Google Cloud Messaging, but nowadays GCM is […]

Android Firebase Cloud Messaging Example Read More »

Save key-value data(SharedPreferences)

There are many ways of storing data in android, One of the simplest way is SharedPrefrences If you have a relatively small collection of key-values to save, you should use the SharedPrefrences APIs, Using SharedPrefrences You can stores:   String, Integer, Float, Long, Double and a String Set.  download the full project from  Github. Save data to shared preferences

Save key-value data(SharedPreferences) Read More »

Android Google Map Example

This guide is a quick start to adding a map to an Android app. We are using Android Studio as a development environment. Get the full code from Github Step 1. Create a Google Maps project Follow these steps to create a new app project including a map activity: Start Android Studio. Create a new project.

Android Google Map Example Read More »

Google Places API Example with AutocompleteTextView(Kotlin/Java)

Here is the simple example of Google Places SDK for Android returns place predictions in response to user search queries.As the user types, the autocomplete service returns suggestions for places such as businesses, addresses, latitude, longitude etc. Get the full code from Github     You can add autocompleteTextView  to your app in the following

Google Places API Example with AutocompleteTextView(Kotlin/Java) Read More »

Understanding Android Architecture Components  By Example

Android Architecture Components A new collection of libraries that help you design robust, testable, and maintainable apps. — developer.android.com We will see three main components : Room ViewModel LiveData So first, let’s find out what these components actually are. Then, we’ll learn how we can use them. Get Source code From HERE. By creating an Event app I

Understanding Android Architecture Components  By Example Read More »

A Simple Basic Example of ViewModel

 ViewModelExample  is a very straightforward app with buttons that increase Or decrease  the no of items. The finished app has a bug though; if you rotate the phone, your selected number of items will again set up with the initial value.          What’s going on? Rotating a device is one of a few configuration changes

A Simple Basic Example of ViewModel Read More »

Android Room Persistence Library Example

 Room Persistence Library Major problem with SQLite usage is There is no compile-time verification of raw SQL queries.For example if you write a SQL query with a wrong column name that does not exist in real database then it will give exception during run time and you can not capture this issue during compile time.

Android Room Persistence Library Example Read More »

Android Working With Firebase Realtime Database and Storage

Firebase A fully managed platform for building iOS, Android, and web apps that provides automatic data synchronization, authentication services, messaging, file storage, analytics, and more. All the data is stored in JSON format and any changes in data, reflects immediately by performing a sync across all the platforms & devices. This allows us to build

Android Working With Firebase Realtime Database and Storage Read More »

Android ViewPager Example To Create Sliding Screens

ViewPager Android ViewPager widget is found in the support library and it allows the user to swipe left or right to see an entirely new screen. Today we’re implementing a ViewPager by using Fragment and FragmentPagerAdapter. Get GITHUB code from Here. Creating New Project 1.In Android Studio, go to File ⇒ New Project and fill all the details required to

Android ViewPager Example To Create Sliding Screens Read More »

Android Retrofit Example

Retrofit Retrofit is a REST Client for Android and Java developed by Square. It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice. In Retrofit you configure which converter is used for the data serialization. Typically for JSON you use GSon, but you can add custom

Android Retrofit Example Read More »