示例#1
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   // 需要将ActionDrawerToggle与DrawerLayout的状态同步
   // 将ActionBarDrawerToggle中的drawer图标,设置为ActionBar中的Home-Button的Icon
   super.onPostCreate(savedInstanceState);
   mDrawerToggle.syncState();
 }
示例#2
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   if (mDrawerToggle != null) {
     mDrawerToggle.syncState();
   }
 }
  @Override
  protected void onPostCreate(final Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);

    if (this.architectView != null) {

      // call mandatory live-cycle method of architectView
      this.architectView.onPostCreate();

      try {
        // load content via url in architectView, ensure '<script
        // src="architect://architect.js"></script>' is part of this HTML file, have a look at
        // wikitude.com's developer section for API references
        this.architectView.load(this.getARchitectWorldPath());

        if (this.getInitialCullingDistanceMeters()
            != ArchitectViewHolderInterface.CULLING_DISTANCE_DEFAULT_METERS) {
          // set the culling distance - meaning: the maximum distance to render geo-content
          this.architectView.setCullingDistance(this.getInitialCullingDistanceMeters());
        }

      } catch (IOException e1) {
        e1.printStackTrace();
      }
    }
  }
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);

    final Handler handler = new Handler();
    handler.postDelayed(
        new Runnable() {
          @Override
          public void run() {
            int currentapiVersion = android.os.Build.VERSION.SDK_INT;

            if (currentapiVersion < 14) {
              // Intent i = new Intent(SplashScreenActivity.this, DashboardActivity.class);
              Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);
              startActivity(i);
            } else if (currentapiVersion >= 14) {
              // Intent i = new Intent(SplashScreenActivity.this, DrawerActivity.class);
              Intent i = new Intent(SplashScreenActivity.this, MainActivity.class);
              startActivity(i);
            }
            finish();
          }
        },
        3000);
  }
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   thr =
       new Thread() {
         public void run() {
           while (runAgain) {
             if (streetSpinnerData == null || streetSpinnerData.length == 1) {
               runAgain = false;
               thr = null;
               break;
             }
             if (streetSpinner.getSelectedItemPosition() == selectedStreetItem) {
               // do nothing
             } else {
               Log.e("THREAD ENTERED", "" + selectedStreetItem);
               selectedStreetItem = streetSpinner.getSelectedItemPosition();
               activity.runOnUiThread(
                   new Runnable() {
                     public void run() {
                       setContentView(R.layout.shop_details);
                       updateView();
                       // streetSpinner.setSelection(1);
                     }
                   });
             }
           }
         }
       };
   thr.start();
 }
示例#6
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
   getWindow()
       .setFlags(
           WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
 }
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   RefInvoker.invokeMethod(
       activity,
       Activity.class.getName(),
       "onPostCreate",
       new Class[] {Bundle.class},
       new Object[] {savedInstanceState});
 }
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);

    // Trigger the initial hide() shortly after the activity has been
    // created, to briefly hint to the user that UI controls
    // are available.
    delayedHide(100);
  }
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    listFrag = new ListOfFileFragment();
    FragmentTransaction transaction = getFragmentManager().beginTransaction();
    transaction.replace(R.id.fullscreen_content, listFrag);
    transaction.addToBackStack(null);
    transaction.commit();

    listOfPdfProperties = listFrag.getListOfFileProperties();
    listFrag.setOnTouchListener(ScrollScreen);
  }
示例#10
0
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);

    if (ACTION_ERROR.equals(getIntent().getAction())) {
      showDialog(DIALOG_ERROR_ID);

      NotificationManager notificationManager =
          (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
      notificationManager.cancelAll();
    }
  }
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    initViews();

    new fetchProjectsClass(dbhelper).execute(0);
    // Add header view.
    LayoutInflater inflater = getLayoutInflater();
    View v = inflater.inflate(R.layout.list_item_add, null);
    TextView tw = (TextView) v.findViewById(R.id.item_header);
    tw.setTypeface(coust);
    listview.addHeaderView(v);
    listview.setOnItemClickListener(this);
  }
示例#12
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   if (mDrawerToggle != null) {
     mDrawerToggle.syncState();
   }
   /// M: Google update activity title to actionbar in L in this callback, we need update
   /// actionbar again to correct it, if show in ACTION_MANAGE we need skip when
   /// not load out current root(get current as recent).
   RootInfo root = getCurrentRoot();
   if (!(mState.action == ACTION_MANAGE && root.isRecents())) {
     updateActionBar();
   }
 }
  @Override
  protected void onPostCreate(Bundle savedInstanceState) {
    super.onPostCreate(savedInstanceState);
    locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);

    dialog =
        ProgressDialog.show(
            GetUserPosition.this, "", "Trying to get your position. Please wait...", true);

    // Define a listener that responds to location updates
    locationListener =
        new LocationListener() {
          public void onLocationChanged(Location location) {
            if (timerTask.cancel()) {
              locationManager.removeUpdates(locationListener);
              dialog.dismiss();
              Toast.makeText(GetUserPosition.this, "User location retrieved!", 2).show();
              Intent result = new Intent();
              result.putExtra("location", location);
              setResult(USER_POSITION_RETRIEVED, result);
              finish();
            }
          }

          public void onStatusChanged(String provider, int status, Bundle extras) {}

          public void onProviderEnabled(String provider) {}

          public void onProviderDisabled(String provider) {}
        };

    // Register the listener with the Location Manager to receive location
    // updates
    locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);

    dialog.show();
    timer = new Timer();

    timerTask =
        new TimerTask() {
          @Override
          public void run() {
            locationNotRetrieved();
          }
        };

    timer.schedule(timerTask, 60000);
  }
 @Override
 protected void onPostCreate(@Nullable Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   initViews();
 }
示例#15
0
 /**
  * When using the ActionBarDrawerToggle, you must call it during onPostCreate() and
  * onConfigurationChanged()...
  */
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   // Sync the toggle state after onRestoreInstanceState has occurred.
   mDrawerToggle.syncState();
 }
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onPostCreate(savedInstanceState);
 }
示例#17
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   drawer_toggle.syncState();
 }
示例#18
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
 }
示例#19
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   initViews();
   checkClockedIn();
 }
示例#20
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   Log.i(TAG, "onPostCreate");
   super.onPostCreate(savedInstanceState);
   mDrawerToggle.syncState();
 }
示例#21
0
 /* (non-Javadoc)
  * @see android.app.Activity#onPostCreate(android.os.Bundle)
  */
 @Override
 public void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   mHelper.onPostCreate(savedInstanceState);
 }
 @Override
 public void onPostCreate(Bundle savedInstanceState) {
   transcript.add("onPostCreate");
   super.onPostCreate(savedInstanceState);
 }
示例#23
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   runningHandler.postDelayed(running, framems);
   runningHandler.postDelayed(init, 1000);
 }
示例#24
0
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   mSherlock.dispatchPostCreate(savedInstanceState);
   super.onPostCreate(savedInstanceState);
 }
 @Override
 protected void onPostCreate(final Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   mNavigationHelper.onPostCreate(savedInstanceState);
 }