• Lambda Expressions in Java

    Java is a first-class object-oriented language. With the exception of primitive data types, everything in Java is an object. Even an array is an Object. Every class creates instances that are objects. There is no way of defining just a function / method which stays in Java all by itself. There is no way of […]

    Posted in: Java

  • Resource Optimization with Java SE 7

    The typical Java application manipulates several types of resources such as files, streams, sockets, and database connections. Such resource optimization must be handled with great care, because they acquire system resources for their operations. Thus, you need to ensure that they get freed even in case of errors. Indeed, incorrect resource management is a common […]

    Posted in: Java

  • Android AlarmManager

    By the help of Android AlarmManager in android, you can schedule your application to run at a specific time in the future. It works whether your phone is running or not. The Android AlarmManager holds a CPU wake lock that provides guarantee not to sleep the phone until broadcast is handled. Android AlarmManager Example Code […]

    Posted in: Android

  • 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