title: Android views change on click
body: <p>I need something simple, an ability to switch views in my app like I do in iPhone, 
  for example I load first screen with button, click on this button and go next screen with an ability to go back ( We all see Back button in the iPhone UI ).
  I've been trying to do startActivity(this,MySecondScreen.class) but it crashes.</p>
  
  <pre><code>public class mainClass extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  }
  
  public void login_Click(View v) {
      // Perform action on click
      try{
      Intent i = new Intent(this, MainMenuTabs.class);
      startActivity(i);
      }
      catch(Exception ex)
      {
          Log.e("main",ex.toString());
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>and my second class is this which is a TabActivity extender
  public class pissedoff extends Activity {</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.mainmenuview);
  }
  
  public void login_Click(View v) {
      // Perform action on click
      try{
      Intent i = new Intent(this, MainMenuTabs.class);
      startActivity(i);
      }
      catch(Exception ex)
      {
          Log.e("main",ex.toString());
      }
  }
  </code></pre>
  
  <p>}</p>