Android Tutorials
21. Reading a file sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how read a file in Android. In this program an embedded file which is saved in your project under the res/drawable folder is opened and read in your android program. Once it is read, the contents of the file are shown in a Toast. A Toast is just a special alert that is shown on the screen and disappears after some time automatically.
22. Progress bar and downloading a file sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to show Progress Bar in Android. In this program many concepts are explained. A button is shown and when clicked, a big file is downloaded from flickr. The downloaded file is saved to the sdcard in the android phone. While the download is still in progress, a progress bar is shown with the actual percentage of download. So the code below explains, downloading a file from a server, saving a file to the sdcard and showing a progress bar all in one android program.
23. Date and Time sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to use Date Picker and Time Picker in Android. In this program two buttons will be shown. When you click on the first button, the date picker widget is shown and once you select the date, the selected date will be displayed on the textview. When you click on the second button, a Time Picker widget will be shown and the selected time will be shown on the text view.
24. Gallery sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to use Gallery in Android. In this program a listof images is shown as a gallery. When you click on the list, the selected item index is shown on the text view. You can use this ImageAdapter widget and the Gallery object together with the onListItemClick() method to determine the selected index and process accordingly. Remember to copy all your images in your res/drawable folder.
25. GridView sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to use GridView in Android. In this program a list is shown as a grid. When you click on the list, the selected item is shown on the text view. You can use this ArrayAdapter widget and the GridView object together with the onListItemClick() method to determine the selected index and process accordingly.
26. Spinner sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to use Spinner in Android. In this program a list is shown as a dropdown box. When you click on the list, the selected item is shown on the text view. You can use this ArrayAdapter widget and the Spinner object together with the onListItemClick() method to determine the selected index and process accordingly.
27. ArrayAdapter sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to use ArrayAdapter in Android. In this program a list is shown. When you click on the list, the selected item is shown on the text view. You can use this ArrayAdapter widget and the onListItemClick() method to determine the selected index and process accordingly.
28. Another Animation sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to do simple animation in Android. In this program a list of items in a listview is animated to appear by expanding to full size from the center of the screen. You can play with the code to try different types of animation.
29. Animation sample program in Android
By: Ashley : 2011-07-03
Description: This sample android program shows you how to do simple animation in Android. In this program the xml file ani.xml is used to rotate the images in sequence. The images must be copied to the /res/drawable folder together with the ani.xml file.
30. AlertDialog sample program in Android
By: Ashley : 2011-07-02
Description: This sample android program shows you how to use an Alert Dialog box in Android.