title: Android AlertDialog.Builder method getContext() not defined
body: <p>The reference page for AlertDialog.Builder has a <a href="http://developer.android.com/reference/android/app/AlertDialog.Builder.html#getContext%28%29" rel="nofollow">getContext()</a> method listed for API 11+, but this code:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) 
  {
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.activity_main);
  
      AlertDialog.Builder builder = new AlertDialog.Builder(this);
      LayoutInflater inflater = LayoutInflater.from(builder.getContext());
  }
  </code></pre>
  
  <p>will display an error in Eclipse:</p>
  
  <pre><code> The method getContext() is undefined for the type AlertDialog.Builder
  </code></pre>
  
  <p>But I'm using API level 15 so I would have thought it were available. Can anyone see what the problem might be?</p>