title: OnPaused not triggered
body: <p>I've created a dialog but according to the activity workflow it should trigger the onpause but it doesn't. What is going wrong?
  Android Activity Flow : <a href="http://developer.android.com/training/basics/activity-lifecycle/pausing.html" rel="nofollow">http://developer.android.com/training/basics/activity-lifecycle/pausing.html</a></p>
  
  <pre><code>    @Override
      public boolean onOptionsItemSelected(MenuItem item)
      {
          //stopAutoCall = true;
          // Handle item selection
          // if (item.getTitle().toString().toLowerCase() == "settings")
          // {
          AlertDialog.Builder alert = new AlertDialog.Builder(this);
  
          alert.setTitle("Number");
          alert.setMessage("Put here the number in to call");
  
          alert.show();
      }
  
      @Override
      public void onPause()
      {
          super.onPause();
  
          stopAutoCall = true;
      }
  </code></pre>