Once you've added a button to your Android layout ("viewgroup"), you can add some code that will be invoked when your button is clicked. I'll show you how in this tutorial.
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