           // Define the Handler that receives messages from the thread and update the progress         private final Handler handler = new Handler() {               public void handleMessage(Message msg) {                                   String aResponse = msg.getData().getString("message");                   if ((null != aResponse)) {                     myProgressDialog.dismiss();                 }             }         };      