In this tutorial, I will show you how to implement TimePicker and TimePickerDialog in Android. TimePicker is a widget in Android which allows you to select a time in terms of hour and minutes. TimePickerDialog is a dialog which allows to select the time and provides the selected time in an override method. layout file including text-view where selected time … Continue reading TimePicker in Android Tutorial/Example
When an android application is launched the main thread is automatically created. This thread is also called UI thread. This main thread is responsible for everything related to UI i.e drawing the views, dispatching various events and handling the clicks and updating the views. If we perform heavy operations or long running operations UI thread … Continue reading What is the use of Handler in Android
A Service is an application component that can perform long-running operations in the background like for downloading files or whether to check internet calls or something else similar. A service does not have any UI so it can be called from other Android components and it can be in running state even if we switch applications. A … Continue reading How to implement Service in Android
A Broadcast Receiver is an Android component which allows the users to register for an event and triggers when the event happens. A receiver can be registered for pre-defined Android actions or custom actions. To implement the Broadcast Receiver in Android Application: Define a Broadcast Register.(can be done in two ways i.e one is locally in Activity … Continue reading How to implement BroadcastReceiver in Android
In the last tutorial, I described how to sign up and sign in the user at Firebase. In this tutorial, I am going to describe how to save and retrieve the data at Firebase using Android. If you are not Aware of Firebase Please refer here if you want to learn about sign up and sign … Continue reading Saving and Retrieving Data from Firebase Android Part one
As most of you are knowing Firebase is on boom these days. Firebase is a platform for the web,mobile applications which provide real-time database,storage,authentication, Fcm, push notifications easily and is fast and reliable. Firebase is considered as the alternative of Parse.com So,let's start using Firebase for android. 1. First of all, create Firebase account using Gmail … Continue reading Android Starting with Firebase
If you are not Familiar with Fragments please check my Android Working with Fragment post. In my earlier post, i described how to replace the fragments in container containing one fragment at a time to check refer here Android Working with Fragments Part Two In this post, I will describe how to add the fragments in the container … Continue reading Android Working with Fragments Part three
If you are not Familiar with Fragments please check my Android Working with Fragment post. In this post, I will be describe working with fragments using a Container layout i.e having a container, and replacing the fragments in the container according to user actions. In brief, we will have one fragment in the container at a time … Continue reading Android Working with Fragments Part Two
A fragment is a part or portion of Activity. It is also known as sub-activity. The Primary classes related to fragment are: android.app.Fragment: Base class for fragment definitions. android.app.FragmentManager: Class for interacting with fragments within the activity. android.app.FragmentTransaction: Class for performing operations like adding or replacing the fragments. Google also provides compatibility support v4 package … Continue reading How to implement Fragments in Android.
Android 5.0 introduced the material design bring the all new design, patterns, widgets and much more. If you not familiar with material design start here. Here I will talk about SnackBar introduced in Android Material Design. Snack bar is similar android Toast. Before you can use Snack bar in your Application you need to add following support design … Continue reading How to Implement SnackBar in Android.