User login



Syndicate content
Add to Google


Tutorials

Welcome to our Tutorials section! We are working hard to bring you high quality and interesting tutorials. Also check out the tutorials forum if you have any problems or want to make a request. Also, if the text in the code samples is too small, click here for an explanation.

Custom View - HorizontalSlider

SDK Version: 
M5
horizontal_slider_m5.png

In this tutorial we'll create a custom View called HorizontalSlider based on ProgressBar. This slider will allow the user to move the slider back and forth on the screen and get notified when this happens.

Using threads and ProgressDialog

SDK Version: 
M5
pi_m5.png

This example shows you how to properly use a thread to do work while displaying an indeterminate ProgressDialog.

TourGuide - Virtual Sightseeing

SDK Version: 
M5
tourguide_m5.png

This tutorial creates a MapActivity which has a spinner floating above a MapView. You can select different locations from the spinner and hit the button to view that location. The locations are a handful of the "Most Popular Destinations" from http://www.satellite-sightseer.com/

PhoneFinder - SMS Phone Locator

SDK Version: 
M5
phonefinder_m5.png

In this tutorial we will create a GPS Phone Recovery application. The application will allow the user to setup a password that he or she can use to recover a lost or stolen phone. Once the user has setup the password, if they lose their phone they'll be able to send a text message to their phone from another cell phone and if the text message is formatted "SMSLOCATE:[password]" with the correct password then the phone will respond with all of the data about the phone's current location from the GPS. This includes latitude, longitude, altitude, heading, speed, and more.

MusicDroid - Audio Player Part III

SDK Version: 
M3
MusicDroid3.png

I part 3 of the MusicDroid tutorial we create a simple controls interface that will be launched by our playlist when you play a song. The controls interface is a translucent Activity that simply has 4 images, one for each direction on the D-Pad. When you hit a direction on the pad it will send a command to the service and play a small animation.

This tutorial utilizes the work done in parts 1 and 2, though you do not have to be familiar with those parts if you just want some examples of animation or transparency.

MusicDroid - Audio Player Part II

SDK Version: 
M3
MusicDroid1.png

In part 2 of the MusicDroid media player tutorial series, we will move the MediaPlayer object into a remote service so that you can use the rest of the phone while playing your music. We will setup this service so that it will be simple to add the controls in part 3 for Pause, Stop, Skip forward, Skip back, etc. This service will also provide a marquee notification each time a new song starts, and a notification icon for play/pause status.

MusicDroid - Audio Player Part I

SDK Version: 
M3
MusicDroid1.png

In part 1 of this 4 part series, we will setup a very basic music player that will list all songs on the SD card and allow the user to select a song to play. Over the course of this series we will build a fully functional MP3 player with animated controls and IDE3 tag support.

NewsDroid RSS Reader

SDK Version: 
M3
NewsDroid1.png

In Hello Android's first tutorial we will walk through creating a simple RSS reader. This tutorial will show you how to parse XML files and use the SQLiteDatabase for storage.