docs: public static void getLastKnownLocation(Context context, boolean waitForGpsFix, final LocationResult cb) {
          DeviceLocation deviceLocation = new DeviceLocation();
  
          LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
          Location last_loc;
          last_loc = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
          if (last_loc == null)
              last_loc = lm.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
  
          if (last_loc != null && cb != null) {
              cb.gotLocation(last_loc);
          } else {
              deviceLocation.getLocation(context, cb, waitForGpsFix);
          }
      }