I have some fragments all of them uses very simple asynctasks who mostly look like the same and are derived from the same base task.
In most of them I see the progress dialog circle spinnin while they are executed but in one it doesn't appear despite the fact that the task is correctly executed.

Why? I'm using the default setting only overriding doInBackground and onPostExecute.

Could it be cause by layouts(but in my case they are similar?

This is the code of the asynctask causing the problem(both tasks with and without the progress dialog are child of the same task class)

```
/**
    * AsyncTask che richiede i dati al server
    * @author pc
    *
    */
   class MuroTask extends GetDataTask {

       JSONObject jobject;
       ServerInterface server = new ServerInterface();

    @Override
    protected Boolean doInBackground(String... params) {

        try {
            jobject = server.runScriptObject(script_name, null);
        } catch (IOException e) {

            e.printStackTrace();
            return false;
        }

        return true;
    }

    @Override
    protected void onPostExecute(final Boolean success) {

    if (success) {
        if (jobject != null){
            if (parseJSON(jobject)){
            isEmpty = false;
            setContentMuro();
            }
            else{
                isEmpty = true;
            }
        }
         else{
             isEmpty = true;
         }
    }else{
        Toast.makeText(getActivity(),R.string.failed_connection, Toast.LENGTH_SHORT).show();
        return;
    }

        }

}

```