Category Archives: Android Tutorial

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: https://firebase.google.com/docs/database/android/start/… 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 »

Android Push Notification Using Firebase Cloud Messaging (FCM)

In this tutorial you will learn to implement android push notification using firebase cloud messaging (FCM). Firebase is a real time cross platform database that provides various functionalities like authentication, storage, notification, etc. Firebase is becoming popular among developers due to its simplicity and easy implementation. In earlier days Google Cloud Messaging (GCM) was used… Read More »

Android Upload Image to Server Using Volley

Here you will learn about android upload image to server using volley library. At server side I have used java web service and for sending image to server volley library is used. How it works? The user chooses an image from gallery and click on upload button. The image is then converted into Base64 string… Read More »