The array is a data structure which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. Array in …
Read More »Latest Posts
Android SQLite Database Tutorial
SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite is a very light weight database. In this tutorial I’ll be discussing how to write classes to handle all SQLite operations. In this tutorial …
Read More »How to get current date time in java
Java provides the Date class available in java.util package, this class encapsulates the current date and time.You can also use Calendar class to get current date and time. Getting Current Date & Time This is very easy to get current date and time in Java. You can use a simple …
Read More »Email crash report using ACRA
It would be great to get a detailed report every time your app crashes. And that’s exactly what we’re gonna do in this post. I’l be using ACRA, a wonderfully simple crash reporting library.Its also well documented. A brief intro into ACRA : 1. It is capable of creating detailed …
Read More »Wrapper class in Java
Wrapper classes are used to convert primitive into object and object into primitive. Each of Java’s eight primitive data types has a class dedicated to it. These are known as wrapper classes, because they “wrap” the primitive data type into an object of that class. The primitive data types are …
Read More »How To Make Circular Imageview In Android
In this tutorial we are going to learn to make circular ImageView in android. The default ImageView in android is rectangle so there are situations where we will like to create a circular ImageView in android. In this tutorial we will create a custom class to round a Imageview. And you …
Read More »Static Binding and Dynamic Binding in Java
Connecting a method call to the method body is known as binding. There are two types of binding static binding (also known as early binding). dynamic binding (also known as late binding). 1. Static binding or Early binding Static binding is a binding which happens during compilation. It is also …
Read More »Super keyword in java
Super keyword in java is a reference variable that is used to refer parent class object.Whenever you create the instance of subclass, an instance of parent class is created implicitly i.e. referred by super reference variable. Usage of java super Keyword super is used to refer immediate parent class instance …
Read More »Context Menu In Android
This tutorial explains about creating Context menu in Android.A context menu provides actions that affect a specific item or context frame in the UI. Context Menu appears when user long press on a View like ListView, GridView etc.It doesn’t support item shortcuts and icons. Android Context Menu Example activity_main.xml Drag …
Read More »LinkedList in java
The LinkedList class extends AbstractSequentialList and implements the List interface. It provides a linked-list data structure. Java LinkedList class uses doubly linked list to store the elements. It extends the AbstractList class and implements List and Deque interfaces. Java LinkedList class can contain duplicate elements. Java LinkedList class maintains insertion …
Read More »