这两条线是等效的吗?它们在我的应用程序中表现不同。
locationManager = (LocationManager) context.getSystemService(LOCATION_SERVICE);
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
谢谢
这两条线是等效的吗?它们在我的应用程序中表现不同。
locationManager = (LocationManager) context.getSystemService(LOCATION_SERVICE);
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
谢谢