Should I use several activities for an app with several screens?
<p>I'm new to Android and I'm building a simple application to start with. It consists of a client with three screens. In the first screen the user is prompted for an Ip to connect to a server (I use an EditText and a button). If the connection is successfully established, some data will be retrieved from the server and the client will show the data on a blank screen (I use a TextView). This would be the second screen. Then, the user could ask the server for detailed information about any data that has been retrieved from the server, which would be the third screen (I use a TextView again).</p>

<p>The problem is that I don't know what's the best way to go about it. I have currently one activity and one XML file containing all the components of the view (EditText, button, TextView). Until now, I've been using <code>setVisibility(View.GONE);</code>to hide certain components depending on the screen the user is in. (For example in the first screen I have to hide both TextViews).</p>

<p>One of the problems I'm facing is that when I put the phone in a horizontal position the components I had hidden show up again. I don't know if hiding views is the ideal thing to do for my purpose. </p>

<p>I've thought that maybe I should use more than one activity, shouldn't I?</p>

<p>I really appreciate any help you can give me to structure my first app.</p>
