Copy codeThe Code is as follows: public class LoadActivity extends Activity
{
@ Override
Protected void onCreate (Bundle savedInstanceState)
{
Super. onCreate (savedInstanceState );
RequestWindowFeature (Window. FEATURE_NO_TITLE); // remove the title bar.
GetWindow (). setFlags (WindowManager. LayoutParams. FLAG_FULLSCREEN, WindowManager. LayoutParams. FLAG_FULLSCREEN );
SetContentView (R. layout. load );
Change ();
}
Protected void change ()
{
Final Intent it = new Intent (this, MainActivity. class );
Timer timer = new Timer ();
TimerTask task = new TimerTask ()
{
@ Override
Public void run ()
{
// Intent intent = new Intent (LoadActivity. this,
// MainActivity. class );
/// LoadActivity. this. finish (); I = false ;}};
StartActivity (it );
}
};
Timer. schedule (task, 2000); // after stopping for 2 seconds, the game loads the page and jumps to the game menu page.
}
}