Category Archives: Android Tutorial

Android RatingBar Example

In this tutorial you will learn about Android RatingBar with example. RatingBar is widget in android that is used to show user rating in the form of stars. The user can drag or touch it to set the rating value. Rating bar is very import widget specially for eCommerce apps where we have to display… Read More »

Android Image Slider Using ViewPager Example

In this tutorial you will learn to make android image slider using ViewPager and PagerAdapter. ViewPager is a layout manager that allows the user to flip left and right through pages of data. We supply an implementation of a PagerAdapter to generate the pages that the view shows. Below example shows how to make a simple… Read More »

Android Realm Database Tutorial

This is android realm database tutorial. Realm is an open source database that can be used to store data locally in android. It is used by over 100k developers and is a good alternative of SQLite. In this tutorial I will teach you how to use realm database in android. Android Realm Database Tutorial Installation… Read More »

Android Stopwatch Example Using Chronometer

Here you will get android stopwatch example. In this android tutorial I will guide you to make a simple stopwatch example using Chronometer. In android we can use Chronometer class to display a simple timer. Also Read: Simple Notepad App Android Example Android Stopwatch Example Using Chronometer Create a new android project with package name com.androidstopwatch Now… Read More »

Android SOAP Client Example Using ksoap2

In this tutorial you will learn to make an android soap client using ksoap2 library. Prerequisites We need ksop2 library. You can download its jar easily by searching on google. A soap web service running on server. Also Read: Android Restful Web Service Client Example In this example we will create android client that will consume… Read More »

Android Play Video From URL Using VideoView Example

Here you will learn how to play video from url in android using videoview. We can using VideoView widget to play offline video as well as video from url. In below example I have displayed a progress dialog until the video is buffering. Also Read: Picasso Android Tutorial – Load Image from URL Android Play Video… Read More »

Android AdMob Tutorial

This is android admob tutorial. AdMob is an ad network by Google that allows to monetize mobile apps. In this tutorial I will guide you to integrate admob in android app. Here you will learn about two types of ads. Banner Ad: It occupies a small portion of activity. Interstitial Ad: Occupies full screen. Generally shown while… Read More »

Android Real Time Chat Application Using Firebase Tutorial

In this tutorial you will learn to build an android real time chat application using firebase database. Before reading this tutorial I hope you are already familiar with basic read and write operations on firebase. If you don’t know then I would recommend you to follow below link to get basic overview about firebase. Read:… Read More »

4 Ways to Get Current Date in Android

In this tutorial I will show you 4 different ways to get current date in android. For doing this we will use Calendar, Date, SimpleDateFormate and System class. How to Get Current Date in Android? Method 1: In this method we will use Calendar and SimpleDateFormate class.

  Method 2: We can use Calendar… Read More »

Android Date Picker Example

In this tutorial you will get android date picker example. DatePickerDialog is used to show a dialog to pick a date. To show a DatePickerDialog call showDialog() with unique DatePickerDialog id. onCreateDialog() method is automatically called on calling showDialog() method. Register OnDateSetListener with DatePickerDialog and override onDateSet() method. onDateSet() contains the picked date. I am setting… Read More »

Android Round Button Example

In this tutorial you will learn how to create a round button in android. Shape drawable resource is used to define shape of a view. Below I have shared an example to to make a circle button. Android Round Button Example Create a xml file inside res/drawable folder. round_button.xml

  shape: Defines shape of view.… Read More »