Android Tutorials

11. 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.


12. 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.


13. 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.


14. 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.


15. 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.


16. Reading and Writing a file to SD card sample program in Android

By: Ashley : 2011-07-03

Description: This sample android program shows you how write and read a file from SD Card in Android. In this program four buttons are shown and a Edit box. When you type some text into the edit box and click, Save to SD Card button, the text is saved to a text file and saved to the SD Card. When you click clear button, the edit box contents are cleared. When you click, Read Sd card button the file is read from the SD card and the contents are copied to the edit box.


17. 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.


18. Error generating R.java from manifest

By: Emiley J. : 2011-06-06

Description: If you are seeing this error in your Titanium when you launch the Android Emulator, then the issue is related to your 'id' tag in your tiapp.xml file.