When a button is clicked.
I want to test a shared preference to see if something exists.
If so, then i want it to launch the activity.
If not i would like it to Display a Dialog. with two buttons to log in or cancel.
When the log in button is clicked i would like to launch a activity.
I am familiar with testing the SharedPreference.
Just need a little guidence on AlertDialog and how to display the login and cancle buttons.
Here is the code for the AlertDialog: