This Android Tutorial video shows a simple Android example that has a Button and uses android:onClick xml attribute to respond to Button click and uses R.id namespace to distinguish between 2 button clicks