title: Start a new Activity from Fragment
body: <p>Using Android Studio, I have my MainActiviy class with a Placeholder fragment.  This fragment has buttons, but one has to load an Activity.  How does one do this?  I was told to try something like the below, but the new Intent does not work.</p>
  
  <pre><code>Button button = (Button) rootView.findViewById(R.id.button1);
  button.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
            Intent intent = new Intent(MainActivity.class, AnotherActivity.class);
            startActivity(intent);
          }
   });
  </code></pre>