How to dsiplay dialog to log in or cancel?
<p>When a button is clicked. </p>

<p>I want to test a shared preference to see if something exists.</p>

<p>If so, then i want it to launch the activity.</p>

<p>If not i would like it to Display a Dialog. with two buttons to log in or cancel. </p>

<p>When the log in button is clicked i would like to launch a activity.</p>

<p>I am familiar with testing the SharedPreference.</p>

<p>Just need a little guidence on AlertDialog and how to display the login and cancle buttons.</p>
