title: Process dialog is not stop after login and when logout
body: <p>My Application is still show processing while I go another screen and logout this process dialog still processing did not stop it.</p>
  
  <p>When I press login button in login page I used this code:</p>
  
  <pre><code>btnLogin.setOnClickListener(new OnClickListener() {
  
      public void onClick(View view) {
  
          showProgress();
          postLoginData();
  
      }
  });
  
  public void postLoginData() {
  
      if (pin.getTextSize() == 0 || mobile.getTextSize() == 0) {
  
          AlertDialog.Builder altDialog = new AlertDialog.Builder(this);
          altDialog.setMessage("Please Enter Complete Information!");
  
      } else {
          Intent i = new Intent(this.getApplicationContext(),
          AgAppMenu.class);
          Bundle bundle = new Bundle();
          bundle.putString("mno", mobile.getText().toString());
          bundle.putString("pinno", pin.getText().toString());
  
          i.putExtras(bundle);
          startActivity(i);
      }
  }
  
  private void showProgress() {
      myProgressDialog = ProgressDialog.show(LoginScreen.this, null, "Processing please wait...", true);
  }
  </code></pre>