title: 'this' within anonymous class
body: <p>I noticed weird thing.In the anonymous class this reference points to outer class.For instance:</p>
  
  <pre><code>public MyView view;
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      toggleFullscreen(true);
      this.view=new MyView(this);
      setContentView(R.layout.activity_main);
      //load data
      LoadGameDataTask task=new LoadGameDataTask(..loading params);
  
      task.setListener(new LoadGameDataTask.OnDataLoadedListener() {
          @Override
          public void OnDataLoaded(GameData data) {
      //this -reference to activity
              Log.d("load","completed,this:"+this.toString());// D/load: completed,this:net.rhyboo.com.gl_test.MainActivity$1@34dfbb38
              //this.setContentView(this.view);
          }
      });
      task.execute();
  }
  </code></pre>
  
  <p>If I run this code - I can see <code>this</code> points to my activity after data loading completed.However if I uncomment <code>this.setContentView(this.view);</code> - I got compile error - <code>cannot resolve method setContentView</code>. Its because compiler thinks that <code>this</code> is reference to <code>LoadGameDataTask.OnDataLoadedListener</code>. </p>
  
  <p>Why is this happening?</p>