GitHubDroid / geodroid_master_update

GNU General Public License v3.0
1 stars 0 forks source link

Add Splash #5

Closed GitHubDroid closed 10 years ago

GitHubDroid commented 10 years ago

possible solution:

   public class SplashScreen extends Activity {
    // Splash screen timer

    private static int SPLASH_TIME_OUT = 2000;
 @Override

protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    setContentView(R.layout.splash);
    new Handler().postDelayed(new Runnable() {
         /*
         * Showing splash screen with a timer. This will be useful when you
         * want to show case your app logo / company
         */
        public void run() {

            // This method will be executed once the timer is over
            // Start your app main activity

            Intent i = new Intent(SplashScreen.this, GeoPaparazziActivity.class);
            startActivity(i);

             // close this activity
            finish();
        }
    }, SPLASH_TIME_OUT);
    }
   }
GitHubDroid commented 10 years ago

https://github.com/GitHubDroid/geodroid_master_update/commit/13fe0d7c92cfbae3cf813b2bde0f5557a291979b