Update: The below answer will only provide either GPS or Network as the provider. Here is a similar question that may be helpful. How to know the positioning mode is WIFI or 2G/3G cell tower in Android?
Are you using onLocationChanged method inside the LocationListener to get the coordinates? If so you can use the location.getProvider() method to get the provider.
LocationListner locationListner = new LocationListener(){
public void onLocationChanged(Location location){
String provider = location.getProvider();
}
}