title: the method getApplicationContext() is undefined
body: <pre><code>public void onProviderDisabled(String provider) {
      Toast.makeText(getApplicationContext(), "Gps Disabled", Toast.LENGTH_SHORT);
  
  
  }
  </code></pre>
  
  <p>So this is what I have, and it shows an error and tells me The method getApplicationContext() is undefined for the type MyLocationListener</p>
  
  <p>what should I do to avoid this error</p>