@Override protected void onPreExecute() { super.onPreExecute(); if (isProgress) { CommonUtils.displayProgressDialog(context, "Fetching a fancy joke"); } }