title: What is the difference between these two ways to start an activity?
body: <p>First off, I'm totally new at all of this and am mostly learning be searching the internet for directions on how to do what I want and then figuring out how to use it.</p>
  
  <p>So I've found these two versions of how to start an activity, but I don't really understand the difference.  Is one better than the other?  Or should they be used in different circumstances?  Or are they just two different ways of doing the same thing?</p>
  
  <pre><code>Button home = (Button) findViewById(R.id.to_home);
      home.setOnClickListener (new View.OnClickListener() {
          public void onClick(View view) {
              Intent i = new Intent(view.getContext(), Home.class);
                  startActivityForResult (i, 0);
  
          }
      });
  </code></pre>
  
  <p>or this one</p>
  
  <pre><code>Button button = (Button)findViewById(R.id.b_cup);
      button.setOnClickListener (new View.OnClickListener() {
          public void onClick (View view) {
              Intent i = new Intent (Home.this, Cup.class);
              startActivity (i);
  
          }
      });
  </code></pre>