title: not working in my Fragment: getContext(), getActivity() or getSherlockActivity()
body: <p>I want to start a MediaPlayer instance in my sherlock-fragment but the context isn't working.</p>
  
  <p>I've tried  getContext(), getActivity() and getSherlockActivity()</p>
  
  <p>Trying to surround it with isAttached() wasn't successful either.</p>
  
  <p>Error
  "The method isAttached() is undefined for the type Fragment_1"</p>
  
  <p>Is my mistake somewhere else? Thank you.</p>
  
  <pre><code>public class Fragment_1 extends SherlockFragment{
  
  public Button b1;
  public Button b2;
  public Button b3;
  
  public Button r1;
  public Button r2;
  
  public Button s1;
  public Button s3;
  
  private static String mFileName = null;
  
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
      return inflater.inflate(R.layout.fragment_1, container, false);
  
      if( isAttached() ) {
          final MediaPlayer mp = MediaPlayer.create(getActivity(), R.raw.sechs);
          }
  
      View vb1 = inflater.inflate(R.layout.fragment_1, container, false);
      b1 = (Button)vb1.findViewById(R.id.play);
  
      b1.setOnClickListener(new OnClickListener() {
  
          public void onClick(View vb1) {
              mp.start();       
          }
      });
  
  
      View vb2 = inflater.inflate(R.layout.fragment_1, container, false);
      b2 = (Button)vb2.findViewById(R.id.pause);
  
      b2.setOnClickListener(new OnClickListener() {           
  
          public void onClick(View vb2) {                  
              mp.pause();              
          }
      });
   }
  </code></pre>