• Play video in Android with example

    February 12, 2015 1 comment

    In this tutorial explain that how to play video in android. Taking a video(3gp) file inside application raw folder and playing in on activity. The file structure is given as below:  AndroidVideoPlayer.java Create a file in src as androidvideoplayer.java and use given code. Using VideoView class to load video from various sources , takes care […]

    Posted in: Android

  • Creating Android Layout

    February 11, 2015 No Comment

    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

    February 6, 2015 No Comment

    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

    February 1, 2015 No Comment

    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

    January 25, 2015 No Comment

    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

    January 21, 2015 No Comment

    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

    January 18, 2015 No Comment

    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

    January 15, 2015 No Comment

    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

    January 15, 2015 1 comment

    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

    January 13, 2015 No Comment

     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