Following the tutorial on http://www.linux.com/learn/docs/683628-android-programming-for-beginners-part-1