• Creating Android Layout

    Android layout is a class that handles arranging the way its children appear on the screen.  Anything that is a View can be a child of a layout. All of the layouts inherit from ViewGroup so you can nest layouts.  You could also create your own custom layout by making a class that inherits from […]

    Posted in: Android

  • Use of the volatile variable in java

    Volatile in Java First, you have to understand a little something about the Java memory model.The best way I can think of to describe it is if you imagine it this way pointed as below : Each thread in Java takes place in a separate memory space (this is clearly untrue, so bear with me […]

    Posted in: Java

  • 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

  • 4 Best Security Apps of 2014

    Presenting you 4 Best Security Apps of 2014. Have a glimpse on then and choose anyone you feel can make your smartphone safe from unwanted hacks. 1-CM Security Antivirus                                   Size: Varies with device ScreenShots : Description ★CM Security received the Oscar […]

    Posted in: Android