how many activities for a game?

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

how many activities for a game?

Postby saps1727 » Fri Jul 16, 2010 5:27 am

Hey, I am creating a game and currently have 1 activity with a custom view and a thread. I want to show a "new game" dialog menu when the game is over..how would I implement this? Do I need to make my "game view" into a new activity?
saps1727
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Jun 24, 2010 4:58 am

Top

Re: how many activities for a game?

Postby borjaespin » Fri Jul 16, 2010 10:37 am

I would create a new activity itself for that purpose. Thus you can put into it not only a button, but a message / game rankings / whatever and apply to it wathever theme you want.

When you got the whole new activity created, you should start (or start for result) this new activity when the game reaches it´s end.
borjaespin
Freshman
Freshman
 
Posts: 6
Joined: Fri Jul 16, 2010 10:30 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests