Android Open Source - GADemo Splash Screen






From Project

Back to project page GADemo.

License

The source code is released under:

GNU General Public License

If you think the Android project GADemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.pdro.gademo;
//  www  . j  a  v  a  2  s  .  co m
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SplashScreen extends Activity {

// Splash screen timer
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_splash);

      final Button getStartedButton = (Button) findViewById(R.id.getStartedButton);

      View.OnClickListener listener = new View.OnClickListener() {

          @Override
          public void onClick(View view) {

              Intent intent = new Intent(SplashScreen.this, MainActivity.class);
              startActivity(intent);
          }
      };

      getStartedButton.setOnClickListener(listener);
  }
}




Java Source Code List

com.pdro.gademo.BuildConfig.java
com.pdro.gademo.ColorWheel.java
com.pdro.gademo.FactBook.java
com.pdro.gademo.MainActivity.java
com.pdro.gademo.MessagesActivity.java
com.pdro.gademo.SplashScreen.java