won't show progressDialog in android
<p>I have a to load a progressdialog in a second activity that I have in my android project after push a button but the pogressdialog doesnt load it.
Could you help me please?
Thanks and sorry for my english!</p>

<p>The code is...</p>

<pre><code>ent enviar.setOnClickListener(new OnClickListener()
   {

      public void onClick(View v){


            calcularFecha(horaIn,horaFi);
            Runtime runtime = Runtime.getRuntime();
            Log.d("PRUEBA", "COMENZAMOS LA PARTE DE LA CONEXION");

            //getApplicationContext()


              progressDialog = ProgressDialog.show(programacion.this, "", "Loading...");

              new Thread() {

              public void run() {

              try{

              sleep(10000);

              } catch (Exception e) {

              Log.d("PRUEBA", e.getMessage());

              }

              // dismiss the progress dialog

              progressDialog.dismiss();

              }

              }.start();
</code></pre>
