Code example on How to Implement Alert Dialog in Android