new performBackgroundtask().execute();
class performBackgroundtask extends AsyncTask<Void, Void, Void> {
@Override
protected void onPreExecute() {
connectionProgressDialog = new ProgressDialog(context);
connectionProgressDialog.setCancelable(false);
connectionProgressDialog.setCanceledOnTouchOutside(false);
connectionProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
connectionProgressDialog.setMessage("Loading...");
connectionProgressDialog.show();
}
@Override
protected Void doInBackground(Void... params) {