Android quick question about best practices

I have a stupid little game that I made only for myself, but I’m thinking of sharing it with my friends, because it’s not ready for prime time. The game includes a person making a move in 4 seconds.

In my game, every time the level advances, I want to turn off all the buttons and show the countdown as 3 ... 2 ... 1 ... and then all the buttons are activated again.

Now there are two ways to do this (which I can think of) send the intention and go to another action in which I can create a “splashy” 3.2.1 animation and then return to the game activity ... or

just add text to the same game as 3 ... 2 ... 1..go!

What would you recommend?

I'm just afraid that if I send a person to another activity, then after the animation they will return and the game will not be fully loaded, but the timer will start, and therefore the game will give them less time to make their move.

Thanks in advance!

+3
source share
2 answers

Personally, I think you should display the countdown on the game screen. This is not for performance reasons, but only because I think this is the best user interface. If I need to respond quickly, I like to see the interface, even if it is disabled. I don’t like it when you launch the game on a completely different screen.

, , . onResume(), , .

ActivityGroup .

+5

, - (, , , ). , , onCreate(). .

- ArrayList<Button>,

for(Button button : buttonArrayList)
     button.setClickable(false);

Android, .

+1

All Articles