@Override protected void onPreExecute() { super.onPreExecute(); proDialog = new LoadingDialog(activity); proDialog.setCancelable(false); proDialog.show(); proDialog.setLoadingName(getString(R.string.photo_uploading)); }
@Override protected void onPostExecute(BaseWsResponse result) { super.onPostExecute(result); proDialog.cancel(); String resultCode = (String) result.getHashMap().get("result"); if (null != resultCode && resultCode.equalsIgnoreCase("ok")) { DialogUtil.displayWarning( activity, getString(R.string.sys_msg), getString(R.string.photo_upload_successful), false, null); previewImage.setImageBitmap(null); deleteOldPhotos(photoRealPath); saveSinglePoint("", ""); savePhoto(photoName, ""); } else { DialogUtil.displayWarning( activity, getString(R.string.sys_msg), getString(R.string.photo_upload_fail), false, new OnClickListener() { @Override public void onClick(View v) {} }); } }