title: Launch Activity from Fragment throws ClassNotFoundException
body: <p>I know it's a long shot but I tried a lot of solutions and none worked.
  I'm trying to launch an activity from a fragment when a button is tapped.</p>
  
  <p><strong>Fragment.java</strong></p>
  
  <pre><code>public class Lev1 extends Fragment implements OnClickListener {
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
  
          View v = inflater.inflate(R.layout.lev1, null);     
          Button button1= (Button) v.findViewById(R.id.level1);
  
          button1.setOnClickListener(this);           
  
          return v;
  
      }
  
      @Override
      public void onClick(View v) {
  
          try {
              Intent intent = new Intent(getActivity(), getActivity().getClassLoader().loadClass("es.uam.eps.dadm.SESSION"));
              startActivity(intent);
          }
          catch(ClassNotFoundException e) {
              //to handle carefully
              Toast.makeText(context, "Class not found",
                       Toast.LENGTH_SHORT).show();
          }
      } 
  </code></pre>
  
  <p><strong>Fragment.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout        
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;Button
          android:id="@+id/level1"            
          android:layout_width="300dp"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_margin="8dp"
          android:background="@drawable/fr1"
           /&gt;        
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I suppose that is not a package problem, because if I use an activity and not a fragment the following works well:</p>
  
  <pre><code>Button button1= (Button)findViewById(R.id.level1);
  
  button1.setOnClickListener(new OnClickListener() {
  
  public void onClick(View v) {
          startActivity(new Intent("es.uam.eps.dadm.SESSION"));
  }
  </code></pre>
  
  <p>So I don't know why the other way rises an ClassNotFoundException when I try to load my SESSION class. Maybe the declaration of <code>intent</code> is wrong? 
  Thanks in advance to any help.</p>