To tell your phone to do something programmatically, you need to create an "intent". Here we'll use an intent to launch an activity.
A practical guide to Android development. Learn to create Android programs using Java, and create the app of your dreams! Get complete courses at http://courses.caveofprogramming.com