开发者

Android and back to main activity when time is up

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜