Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Activities or Layouts?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 JOrrWhat   Members   

149
Like
0Likes
Like

Posted 12 August 2012 - 07:24 PM

Hello GameDev,

Ive recently begun programming my first Android Game and ive really been wondering something:

Which is the better way to approach screen changes? Should i be looking to build layouts or activities and what are the prime use cases for one over the other?

As always, much appreciated!

#2 Epic Zombie   Members   

145
Like
0Likes
Like

Posted 15 August 2012 - 06:15 AM

I think activities are better. If you use one activity and then load different layouts, your source code will become a mess. It's better to keep all functionality of a single screen in a single activity or your project will becode very confusing.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.