Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey,
I will try to explain what i need, so i hope you understand me :)

Well, i'm developing an app for android, and the first page i want is a drop down menu, with some names, on different "drinking-games" like first is shot roulette, and then another, and so on.
But my problem is i dont know how i get it to start the "game" after selecting it from the dropdown menu, and then when the "start" button is pressed, it will start the selected game.

Here's the graphics so far:

first dialog

Hope you understand, and are able to help :)
Posted
Updated 29-Jun-11 14:39pm
v3

How about a OnMenuItemClickListener[^]?

That one reacts to the Menu Event and gets the MenuItem, the Event was fired on. Should be simple to react on that.
 
Share this answer
 
i need the dropmenu to have different names of games, like when you open the dropmenu it says game1 and further down game 2, and so on. When you fx select game 2, then it open a new window with game2.
Do i then need to create a new .java file, with game2?
 
Share this answer
 
Comments
TorstenH. 30-Jun-11 11:06am    
you should do so - that's common style.

Also should you divide GUI, command and your data - that's called MVC and has been common sense even before most of us where born. Check Wikipdia for further information on that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900