title: How to dismiss Dialog on backKey Pressed!
body: <p>Friends i have an application with an Activitiy which brings some data from Content Providers and Display it in the textViews and edittext onto the Screen. but before that it prompts me for the username and password in a dialog.  i have done all the getting content Providers Stuff in the positiveButton onClick Listener of the Alert Dialog.  </p>
  
  <p>It works fine but problem is that if i dont enter username and just press bakc key button it closses down the Dialog Box and the Back Screen is showed without loading the content providers.  </p>
  
  <p>Note: I have put my code of alert dialog in the onCreate Function of that activity.  </p>
  
  <p>So can u guide me how should i do it that when i press back key on dialog box it also should not display my activity. </p>
  
  <p>Please Help!</p>