title: Progress Dialog is closed when touch on screen
body: <p>I use a <code>ProgressDialog</code> in the thread. In the <code>onButtonClick</code> the thread is started, but when I touch anywhere on the screen the <code>ProgressDialog</code> is closed.</p>
  
  <p>How can I prevent this?</p>
  
  <pre><code>private void ButtonClick(View view) {
  
      btn1 = (Button) view.findViewById(R.id.btn1);
      btn1.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              GetStudentData();
          }
      });
  }
  
  private synchronized void GetStudentData() {  
      try {
          // Thread to display loader
          new Thread() {
              @Override
              public void run() {
                  Looper.prepare();
                  dialog = Msg.ShowProgressDialogBox(
                      getActivity(),
                      dialog,
                      "Please wait while we fetch the student data...");
                  Looper.loop();
              }
          }.start();
  
          new Thread() {
              @Override
              public void run() {
                  String studentData="Kailas";
              }   
          }
      } catch(Exception ex {
      }
  }
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>When I touch on the screen the <code>ProgressDialog</code> disappears but get all data.</p>