@Override
 protected void onPreExecute() {
   if (!restaurant.isCompleteDataLoaded()) {
     progressDialog =
         ProgressDialog.show(activity, restaurant.getRetaurantName(), "Recuperando información");
     progressDialog.setInverseBackgroundForced(true);
   }
 }
예제 #2
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setRetainInstance(true);
   dialog = new ProgressDialog(getActivity());
   dialog.setMessage("Loading...");
   dialog.setInverseBackgroundForced(false);
   dialog.setCancelable(true);
   dialog.show();
   FetchLeagues leagues = new FetchLeagues();
   leagues.execute();
 }
예제 #3
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    Intent intent = getIntent();
    id = intent.getExtras().getString("id");
    // System.out.println(id);
    new getEvent().execute("https://protected-ocean-61024.herokuapp.com/event/", id);
    dialog = new ProgressDialog(this);
    dialog.setCancelable(false);
    dialog.setMessage("Loading Event");
    dialog.setInverseBackgroundForced(false);
    dialog.show();
  }
예제 #4
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setupLayout(R.layout.activity_app_listing, "Show Java");

    PackageLoadDialog = new ProgressDialog(this);
    PackageLoadDialog.setIndeterminate(false);
    PackageLoadDialog.setCancelable(false);
    PackageLoadDialog.setInverseBackgroundForced(false);
    PackageLoadDialog.setCanceledOnTouchOutside(false);
    PackageLoadDialog.setMessage("Loading installed applications...");

    listView = (ListView) findViewById(R.id.list);
    PackageLoadDialog.show();

    ApplicationLoader runner = new ApplicationLoader();
    runner.execute();
  }