I would like to implement SplashScreen in my application. I found that the best and easiest way is to run an action showing a layout with a representation of the image when the application starts, and then add the android manifest: noHistory = "true". Now, how do I configure the splashscreen action to launch the MainActivity class after a certain time? Say 2 seconds?
This is my splashscreen activity.
public class SplashActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splashscreen); } }
source share