Back to project page GADemo.
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.
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); } }