コード例 #1
0
 /** === onCreate === */
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   execCreate();
   setNoFullscreen();
   setText(R.string.action_no_fullscreen);
 }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Start whatever intent we were launching
    Intent intentToStart = getIntentForUri(this, getIntent().getData());
    if (intentToStart != null) {
      startActivity(intentToStart);
    } else {
      // Fallback for opening an unknown url.
      startActivity(new Intent(this, MainActivity.class));
    }

    finish();
  }
コード例 #3
0
ファイル: Intro.java プロジェクト: JongsoonHwang/PhotoBookEco
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow()
        .setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

    setContentView(resLayoutID);

    ImgIntro = (ImageView) findViewById(R.id.intro);

    animation = AnimationUtils.loadAnimation(Intro.this, R.anim.alpha);
    ImgIntro.startAnimation(animation);

    mHandler = new Handler();
    mHandler.postDelayed(runnable, 6000);
  }