Custom Listview in Android Example

We already discussed about using ListView in the previous tutorial Android ListView. In this tutorial, let’s learn how to customize list items in ListView to display list of items in a vertical scrollable list. See flowing Steps : Add ListView in activity_main.xml Declare your list of data in ArrayList Create a Custom Adapter class which extends BaseAdapter. Override getView() method and inflate the […]

Android ListView Example

In this tutorial, let’s learn how to use Android ListView to display list of items in a vertical scrollable list. See flowing Steps : Add ListView in activity_main.xml Declare your list of data in a String Array or ArrayList Set the data list to ArrayAdapter. Set the ArrayAdapter to the ListView.

Checking Internet Connection Android Example

In this tutorial we are going to show how to detect the availability of internet connection. You have to check the internet connectivity before making any HTTP calls. See flowing Steps : Add the below permissions to the AndroidManifest.xml file. <uses-permission android:name=”android.permission.INTERNET” /> for Internet access. <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” /> to access the network state information. […]