开发者

Android and back to main activity when time is up

开发者 https://www.devze.com 2023-02-11 19:13 出处:网络
I start a new activity from my main activity with Intent i = new Intent(this, Game.class); startActivity(i);

I start a new activity from my main activity with

Intent i = new Intent(this, Game.class);
startActivity(i);

The game activity has a timer which counts dow开发者_StackOverflow社区n to 0. I would like to pop back to the main activity (killing the game activity).

How do I enact this?

(I've already defined onDestroy() etc. correctly in my game activity.)


In the method that gets called when the timer is up call finish()

0

精彩评论

暂无评论...
验证码 换一张
取 消