title: Wrong 2nd argument type. Found: 'com.google.android.gms.location.LocationCallback', required: 'android.app.PendingIntent' more
body: <p>I'm trying to use FusedLocationProviderClient in my program but i keep finding this error.</p>
  
  <p>I'm getting the error in the requestLocationUpdates method</p>
  
  <p>I'm following the tutorial from pubnub from <a href="https://www.pubnub.com/blog/build-your-own-uber-lyft-app-geolocation-tracking-android/" rel="nofollow noreferrer">here</a></p>
  
  <p>My program is </p>
  
  <pre><code>public class DriverActivity extends AppCompatActivity {
  private FusedLocationProviderClient mFusedLocationClient;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      LocationRequest locationRequest = LocationRequest.create();
      locationRequest.setInterval(5000);
      locationRequest.setFastestInterval(5000);
      locationRequest.setSmallestDisplacement(10);
      locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
      if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp; ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
          // TODO: Consider calling
          //    ActivityCompat#requestPermissions
          // here to request the missing permissions, and then overriding
          //   public void onRequestPermissionsResult(int requestCode, String[] permissions,
          //                                          int[] grantResults)
          // to handle the case where the user grants the permission. See the documentation
          // for ActivityCompat#requestPermissions for more details.
          return;
      }
      mFusedLocationClient.requestLocationUpdates(locationRequest, new LocationCallback() {
          @Override
          public void onLocationResult(LocationResult locationResult) {
              Location location = locationResult.getLastLocation();
              Main2Activity.pubnub.publish()
                      .message("")
                      .channel("")
                      .async(new PNCallback&lt;PNPublishResult&gt;() {
                          @Override
                          public void onResponse(PNPublishResult result, PNStatus status) {
                              // handle publish result, status always present, result if successful
                              // status.isError() to see if error happened
                              if (!status.isError()) {
                                  System.out.println("pub timetoken: " + result.getTimetoken());
                              }
                              System.out.println("pub status code: " + status.getStatusCode());
                          }
                      });
                      }
  
          });
      }
  </code></pre>