title: How to move from a fragment to an activity
body: <pre><code> Intent intent = new Intent(getActivity(), SecondActivity.class);
      getActivity().startActivity(intent);
  </code></pre>
  
  <p>//using startActivity(intent) is also not working
  //the application crashes whatever I do</p>