コード例 #1
0
  @Override
  public void onResume() {

    // Hide the view until we are logged in.
    findViewById(R.id.root).setVisibility(View.INVISIBLE);
    super.onResume();
  }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    smartStoreIntf = new SmartStoreInterface();

    // Creates soups, if they don't exist already.
    smartStoreIntf.createAccountsSoup();
    smartStoreIntf.createOpportunitiesSoup();

    // Configures options for the progress indicator.
    progressDialog = new ProgressDialog(this);
    progressDialog.setTitle("Fetching records...");
    progressDialog.setMessage("Please wait...");
    progressDialog.setCancelable(true);
    progressDialog.setIndeterminate(true);
  }