Should you create many activities of different functions in a game, or 1 activity fits all?

Started by
-1 comments, last by tom_mai78101 11 years, 6 months ago
What do you call those components used in games? Anyway...

I have activities dedicated to those "components". For example, I have:

  • MenuActivity: An activity that handles the main menu of the game. All buttons in the layout of this activity uses Intent to start other activities.
  • ScoreActivity: An activity that handles scoring and scoreboard of the game.
  • PlayActivity: An activity that is the core game, where players play in.
  • etc.

I am wondering if this is the right game development strategy for Android, to call on dedicated Activities for a player's needs. Just any answer would be find.

If this is one of many ways of Android development, how does one utilize the development plan, "One activity fits all"? I just haven't touch upon that development approach yet.

Thanks in advance.

This topic is closed to new replies.

Advertisement