我不知道如何在beforeRemote挂钩中放入许多ctx。我不知道该方法中的第二个参数是什么意思“未使用”? 我需要在beforeRemote中提供请求中的一些日期和值。
locationManager = (LocationManager) context.getSystemService(context.LOCATION_SERVICE);
Criteria criteria = new Criteria();
provider = locationManager.getBestProvider(criteria, false);
locationManager.requestLocationUpdates(provider,0,0, this);
Location location = locationManager.getLastKnownLocation(provider);
if(location != null )
{
onLocationChanged(location);
}