Back to project page android-camera-example.
The source code is released under:
GNU General Public License
If you think the Android project android-camera-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright 2013 Devaholic, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. *//ww w. ja va2 s . c om * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). */ package com.devaholic.android.activities; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import com.devaholic.android.R; import roboguice.activity.RoboActivity; import roboguice.inject.ContentView; /** * <h1>HomeActivity</h1> * * <p> * SplashScreen that will show Devaholic logo and slogan * </p> * * @author M. Rabie Hayoun * @since 1 * @version 1 */ @ContentView(R.layout.splash_screen) public class SplashScreenActivity extends RoboActivity { /** * Timer for the delay before triggering next Activity */ private static int SPLASH_TIME_OUT = 3000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override protected void onStart() { super.onStart(); new Handler().postDelayed(new Runnable() { @Override public void run() { Intent i = new Intent(SplashScreenActivity.this, HomeActivity.class); startActivity(i); finish(); } }, SPLASH_TIME_OUT); } }