• Android Service

    Android service is a component that is used to perform operations on the background such as playing music, handle network transactions, interacting content providers etc. It doesn’t has any UI (user interface). A service is a application component used to perform long running tasks in background. A service doesn’t have any user interface and neither […]

    Posted in: Android

  • Creating Android Menus

    Android Menus can be defined as bellow three types: Android Option Menu Android Context Menu Android Popup Menu 1-Android Option Menu Android Option Menus are the primary menus of android. They can be used for settings, search, delete item etc. Here, we are going to see two examples of option menus. First, the simple option […]

    Posted in: Android

  • Creating Android fragments

    Creating Android fragments is a reusable class implementing a portion of an activity. A Fragment typically defines a part of a user interface. Fragments must be embedded in activities; they cannot run independently of activities. A fragment has a separate layout XML file. A Fragment encapsulates functionality so that it is easier to reuse within activity […]

    Posted in: Android

  • Android with Google Maps v2

     The following description is based on the Android with Google Maps v2 which provides significant improvements to the older API version. The library provides the com.google.android.gms.maps.MapFragment class and the MapView class for displaying the map component. You need to add additional information to your AndroidManifest.xml file to use Google Maps.

    MapFragment The MapFragment class extends […]

    Posted in: Android

  • Android Activity Lifecycle

    Android Activity Lifecycle is controlled by 7 methods of android.app.Activity class. The android Activity is the subclass of ContextThemeWrapper class.An activity is the single screen in android. It is like window or frame of Java.By the help of activity, you can place all your UI components or widgets in a single screen.The 7 lifecycle method […]

    Posted in: Android

  • Android Intent Tutorial

    Android Intent is the message that is passed between components such as activities, content providers, broadcast receivers, services etc.It is generally used with startActivity() method to invoke activity, broadcast receivers etc.The dictionary meaning of intent is intention or purpose. So, it can be described as the intention to do action.The LabeledIntent is the subclass of […]

    Posted in: Android

  • Android ProgressBar

    We can display the android progressbar dialog box to display the status of work being done e.g. downloading file, analyzing status of work etc.In this example, we are displaying the progress dialog for dummy file download operation.Here we are using android.app.ProgressDialog class to show the progress bar. Android ProgressDialog is the subclass of AlertDialog class.The […]

    Posted in: Android

  • Android Analog clock and Digital clock

    Android Analog clock and Digital clock, The android.widget.AnalogClock and android.widget.DigitalClock classes provides the functionality to display analog and digital clocks. Android analog and digital clocks are used to show time in android application. Android AnalogClock is the subclass of View class. Android DigitalClock is the subclass of TextView class. Since Android API level 17, it […]

    Posted in: Android

  • Android TimePicker

    Android TimePicker is a part of the android picker widget that is used to select date. It allows you to select time by hour and minute. You cannot select time by seconds. Android provides this functionality through TimePicker class. The android.widget.TimePicker is the subclass of FrameLayout class. To use TimePicker class, First You have to define the TimePicker […]

    Posted in: Android

  • Android DatePicker

    Android DatePicker is a widget to select date. It allows you to select date by day, month and year. Like DatePicker, android also provides TimePicker to select time. The android.widget.DatePicker is the subclass of FrameLayout class. DatePicker object is also passed into this function. You can use the following methods of the DatePicker to perform […]

    Posted in: Android