title: Constructor Geocoder.Geocoder(Context) is not applicable
body: <pre><code>   if (Geocoder.isPresent()) {
              geocoder = new Geocoder(MapActivity.this.getactivity,Locale.getDefault());
  </code></pre>
  
  <p>This is inside <code>doitbackground</code> of <code>asynctask</code>. It is <code>inner class</code> of mapactivity.</p>
  
  <p>But i cant do this. The error is:</p>
  
  <pre><code>mapactivity not enclosing class
  </code></pre>
  
  <p>When i make only this.</p>
  
  <p>it says</p>
  
  <pre><code>in geocoder can not be applied context
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/16593968/the-constructor-geocodercontext-locale-is-undefined">&quot;The constructor Geocoder(Context, Locale) is undefined&quot;?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/26810206/error-the-constructor-geocoder-context-locale-is-undefined">Error: The constructor Geocoder (Context, Locale) is undefined</a></p>
  
  <p>those did not work because i am in inner class. I cant use constructor to initialize context?</p>
  
  <p>Also putting inner class name as first parameter did not work.</p>
  
  <p>Error:</p>
  
  <pre><code> no suitable constructor found for Geocoder(RetrieveFeedTask,Locale)
  constructor Geocoder.Geocoder(Context) is not applicable
  (actual and formal argument lists differ in length)
  constructor Geocoder.Geocoder(Context,Locale) is not applicable
  (actual argument RetrieveFeedTask cannot be converted to Context by method invocation conversion)
  </code></pre>