button click event doesnt work
<p>I'm trying to switch the views, but when I'm in the second view, the back event click doesnt work.. I don't know what's wrong.</p>

<p>Pls, see my code and help me!</p>

<p><a href="http://pastebin.com/kV52cbWh" rel="nofollow">Part1</a></p>

<p><a href="http://pastebin.com/Ke1iWz01" rel="nofollow">Part2</a></p>

<pre><code>public class t extends Activity implements OnClickListener {
   Button volta;

   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.janela2);

      volta = (Button) findViewById(R.id.button2);
      volta.setOnClickListener(this);

   }

   @Override
   public void onClick(View v) {
      if (v == volta) {
         startActivity(new Intent(t.this, MainActivity.class));
      }
   }
}
</code></pre>
