title: DialogFragment isn't modal
body: <p>In the OnResume method of my fragmentActivity i try to:</p>
  
  <ol>
  <li><p>Check if an internet connection is available, if not display a FragmentDialog</p></li>
  <li><p>if the var storeId id is set to 0, call a new activity whose ask for the id</p></li>
  <li><p>display the  activity</p></li>
  </ol>
  
  <p>Here is my code:</p>
  
  <pre><code>@Override
  protected void onResume() {
     super.onResume();
     ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
     if (connectivityManager.getActiveNetworkInfo() ==null){
         noConDialog.show(getFragmentManager(), NET_ALERT_DIALOG);
         Log.e("jedois","pas m'afficher");
     }
     if (storeId == 0) { //si on a plus la boutique id
      //call logon activity
          Intent logonActivity = new Intent(ShoppingActivity.this, LogonStoreActivity.class);
          startActivityForResult(logonActivity, LOGON_STORE_REQUEST);
     }
  }
  </code></pre>
  
  <p>The problem is, after execute the lines "noConDialog.show(getFra..."the dialog appear but on resume execute the other line to, the my second activity start and hide my dialog.</p>
  
  <p>A dialog is modal, then the app must wait the end of the Dialog, before execute the other lines . Right?</p>
  
  <p>Thanks for your help</p>