Toast.makeText() displaying error
<p>i am trying to find location using gps but the following code of snippet creating problem. The error is displaying as </p>

<blockquote>
  <p>The method makeText(Context, CharSequence, int) in the type Toast is not applicable<br>
         for the arguments (GeocodingMainActivity, String, int)</p>
</blockquote>

<p>..........</p>

<pre><code>private class MyLocationListener implements LocationListener {

 public void onLocationChanged(Location location) {
     String format = String.format( "New Location \n Longitude: %1$s \n Latitude: %2$s", location.getLongitude(), location.getLatitude());
    String message = format;
     Toast.makeText(GeocodingMainActivity.this, message, Toast.LENGTH_LONG).show();
 }

 public void onStatusChanged(String s, int i, Bundle b) 
 {Toast.makeText(GeocodingMainActivity.this, "Provider status changed",Toast.LENGTH_LONG).show();
 }

 public void onProviderDisabled(String s) {
     Toast.makeText(GeocodingMainActivity.this,"Provider disabled by the user. GPS turned off",Toast.LENGTH_LONG).show();
 }

 public void onProviderEnabled(String s) {
     Toast.makeText(GeocodingMainActivity.this,"Provider enabled by the user. GPS turned on",Toast.LENGTH_LONG).show();
 }
</code></pre>
