Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com

When the button is pushed,...

a simple dialog is built and shown with Yes and No buttons.

Build the builder,...

dialog title and message,...

the Yes button,...

including what it has to do.

The No button cancels the dialog.

When the LinearLayout is touched, the dialog is closed, too.

setOnClickListener...

ends here.

No xml, since it has nothing new to offer.