Button click handler for second layout
<p>In my program main and output are two layouts. First main layout is shown to user and it allows user to enter some data and when a button is pressed it fetches data from server.</p>

<p>Output is displayed in the layout "output". For this i use it like this:</p>

<pre><code>setContentView(R.layout.output);

TextView tvOutput = (TextView) findViewById(R.id.tv1);
tvOutput.setText("Data:");
//etc..
</code></pre>

<p>This layout also contains a button "BACK". When user presses this button i want it to go back to "main" layout. This is to allow user again to enter new details and fetch the output. But where does i write code for this button click handler ? For the "Submit" button in "main" layout, I write it in "onCreate()". But which place for the "BACK" button ?</p>
