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 Read more…

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.  Read more…

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 Read more…

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 Read more…

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 Read more…

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 Read more…

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 Read more…

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. Read more…

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 Read more…

 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 Read more…

Facebook