Android Alert Dialog with three buttons setNeutralButton

How to add third button to an Alert Dialog with Example:

Check how to show alert dialog with two buttons

It is veary easy to add three buttons on AlertDialog as shown in below picture


We can add third button on alert popup by setNeutralButton

Check following example code: