Android Intent – Sending SMS and Making Phone Call Example

We are going to learn how to pass phone number to the default SMS application and Dialer application and launch it from our application. We have to use Intent to launch the SMS application and pass the phone number using setData() method. See flowing Steps : Create main layout file  res/layout/activity_main.xml Declare CALL_PHONE permission in the AndroidManifest.xml. This permission in […]

person access_time March 11, 2015launch Read More

Custom Spinner in Android

In the previous tutorial we learned about default android spinner widget Android Spinner Example. Now let’s learn about customizing the spinner items. See flowing Steps : Declare a Spinner in res/layout/activity_main.xml Create separate layout file spinner_row.xml for spinner items Create an array of spinner items Create Custom Adapter which extends ArrayAdapter Assign the Custom Adapter to the Spinner Override on OnItemClickListener method to add your […]

person access_time March 10, 2015launch Read More

Android Spinner Example

Spinner in Android is just like Dropdown (Select) in HTML. We can have any number of spinner items, only one item will be visible at a time. This is one of the basic android form elements. See flowing Steps : Declare a Spinner in res/layout/activity_main.xml Create an array of spinner items Set the array to ArrayAdapter Assign the ArrayAdapter to […]

person access_time March 9, 2015launch Read More

Custom Grid View in Android

In this tutorial, let’s learn how to use Android GridView to display items in a list of scrollable grids. See flowing Steps : Mention GridView in activity_main.xml. Use BaseAdapter to set the List of data’s on the GridView. Here We can make the Changes by inflating our customized xml in the getView method. Our customized xml will fit everytime […]

person access_time March 8, 2015launch Read More