title: cannot reference from static context error in android studio
body: <p>I type the below code, following android development tutorial. But I got an wrong message of "cannot reference from static context error" in " new ImageDeatilFragment();"
  But in Eclipse, I can create an instance in a static method. </p>
  
  <pre><code> public class ImageDetailFragment extends Fragment{
          private static final String IMAGE_DATA_EXTRA  = "resId";
          private int mImageNum;
          private ImageView mImageView;
          public static ImageDetailFragment newInstance (int imageNum){
              final ImageDetailFragment f = new ImageDetailFragment();
              final Bundle args = new Bundle();
              args.putInt(IMAGE_DATA_EXTRA,imageNum);
              f.setArguments(args);
              return f;
          }
      }
  </code></pre>