Featured
-
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
An Overview of Android Activity - Video Tutorial
As far as Android platform is concerned, the funda
by amit.rai -
How to get IMEI number,serial number and software version of your phone
Hello... Sometimes we need to know the country
by shahbaz.ahmmod -
Search location by using place on google map
Here below is the code for searching places by usi
by shahbaz.ahmmod -
How to know free space in sdcard android
I have written code to know free space in sdcard
by shahbaz.ahmmod
Tags
How to add new element in ArrayList.
The below example will help you to add new element in arrayList. So, when we have new element list item shifts the element currently at that postion and any subsequent elements to the right which will help to insert new element at the speci...
How to remove item from ArrayList
The below example will help you to remove an Arraylist item using the element index. To remove an item from an arrayList I have used Object remove (int index) method. This method returns a reference to the item that was removed. You can see below...
Dynamically adding ListViewItem to Listview
To dynammically add new elements into listview we need a Edittext(etAddItem) to input the item/element, a Button(btnAdd) for adding item to the list, and a listview which shows elements in a vertical scrolling manner.
etAddItem = (Edit...
Remove duplication from array list
If you want to remove duplicate entries from your array list you can use hash set to make all items unique rather than use of algorithms.
Set is a ordered collection of items and contains only unique items. And Hashset creates a collection th...
Parcelable vs Serializable
If we want to send some data over the network or from one place to another place then we have to serialize it first using Serialization in java. Serialization is a process of Marshalling and Unmarshalling of data. Basically the conversion of Obje...