Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow change activity android

I try to change from Activity to Activity from andengine and last loaded very slow.How can i insert between image with text "Tap to start" when andengine activity loading ends.I use this function to change.

startActivity(new Intent(ChangeLevelActivity.this, GameActivity.class));
overridePendingTransition(R.anim.zoom_enter, R.anim.zoom_exit);
like image 648
sagus_helgy Avatar asked Aug 07 '26 19:08

sagus_helgy


1 Answers

You should not switch activities - switch scenes.

Create different scenes for different "screens" in your game and switch between them - switching between scenes is fast and easy, much faster than activities.

like image 78
Jong Avatar answered Aug 09 '26 08:08

Jong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!