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 […]
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 […]
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 […]
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 […]
In this tutorial, let’s learn how to use Android GridView to display items in a list of scrollable grids. See flowing Steps : Add GridView in activity_main.xml Set the data to BaseAdapter.