title: Illegal Enclosing Instance inside a fragment
body: <p>I have this code:</p>
  
  <pre><code>MainFragmentActivity a = new MainFragmentActivity();
  MainFragmentActivity.MasterFrag mm = a.new MasterFrag(); // a.new
  MainFragmentActivity.MasterFrag.MasterTask e = mm.new MasterTask();
  e.execute();
  </code></pre>
  
  <p>On the <code>a.new</code> line referenced above, it has a problem with <code>a</code>.  It says:</p>
  
  <pre><code>Illegal enclosing instance specification for type MainFragmentActivity.MasterFrag
  </code></pre>
  
  <p>This block of code is inside a static method inside a <code>Fragment</code> (not static) inside a <code>FragmentActivity</code>.  I am not sure how to declare this <code>a</code> var?  Making this a <code>static</code> call is not an option either...  How can I get a reference to the <code>MainFragmentActivity</code> instance?</p>