This is what I use, my MainActivity
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
public class mainActivity extends Activity {
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.splash);
Thread lTimer = new Thread() {
public void run() {
try {
int lTimer1 = 0;
while (lTimer1 < 2000) {
sleep(100);
lTimer1 = lTimer1 + 100;
}
startActivity(new Intent("com.examples.MENU"));
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally {
finish();
}
}
};
lTimer.start();
}
}
Which uses splash.xml where I add my splash image, then calls my Menu class. change (lTimer1 < 2000)
to however long you want it to appear, 1000 = 1 second.