I’m a noob in android, and I need some hints to understand how to create simple applications that change layout (for layout I mean what appers on the screen).
Every application has buttons for example that, if pressed, move the app to another layout and here I can do something an then come back (for example the sms app). when layout changes, do I have to start another activity? Or can I do everithing in the main activity? How android does work when I do this kind of things?
Where can I read something about it? do you have tutorials? do you have examples? thanks!!
It really depends on your app. On Android an Activity does much more than showing a hierarchy of widgets, so you may use a single Activity and switch between different layouts or really implement your app as multiple Activities.
Since you are a beginner, I suggest you to write down a new Activity every time your screen is supposed to change layout. Eventually, you’ll be able to merge two or more Activity if you think that they are indeed the same piece of functionality