JakeChampion/fetch

public class child data removal requests

saan5 opened this issue · 1 comments

saan5 commented

public class MainActivity extends AppCompatActivity {

TextView tvResult;
ProgressDialog progressDialog;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    progressDialog = new ProgressDialog(this);
    progressDialog.setMessage("Loading...");
    progressDialog.setCancelable(false);
    progressDialog.setCanceledOnTouchOutside(false);
    progressDialog.create();
    progressDialog.show();

    new Handler().postDelayed(new Runnable() {
        @Override
        public void run() {
            progressDialog.dismiss();
            tvResult.setVisibility(View.VISIBLE);
        }
    },2000);
}

}

Originally posted by @saan5 in github/docs#8119 (comment)

saan5 commented

TextView tvResult;
ProgressDialog progressDialog;

@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

progressDialog = new ProgressDialog(this);
progressDialog.setMessage("Loading...");
progressDialog.setCancelable(false);
progressDialog.setCanceledOnTouchOutside(false);
progressDialog.create();
progressDialog.show();

new Handler().postDelayed(new Runnable() {
    @Override
    public void run() {
        progressDialog.dismiss();
        tvResult.setVisibility(View.VISIBLE);
    }
},2000);

}