title: how to open another activity in android using a button
body: <p>so the code below is not doing the proper function it is called to do
  it is supposed to open up a new activity upon a click of a button, but instead
  nothing happens buttons display and no errors
  and this stupid website is requiring me to explain a little more so im just going type random nonsense until it lets me post my question</p>
  
  <pre><code>package com.Tripp.thebasics;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  
  public class Menu extends Activity{
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          //setting up the button references
          Button jokeD = (Button) findViewById(R.id.jokeoftheday);
          Button jokeC = (Button) findViewById(R.id.jokecatagories);
  
          jokeD.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
  
                  // TODO Auto-generated method stub
                  startActivity(new Intent(Menu.this, JokeOfTheDay.class));
  
              }
          });
  
          jokeC.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
  
                  // TODO Auto-generated method stub
                  Intent s = new Intent("com.Tripp.thebasics.JOKECATAGORIES");
                  startActivity(s);
              }
          });
      }
  
      @Override
      protected void onPause() {
  
          // TODO Auto-generated method stub
          super.onPause();
      }
  }
  </code></pre>