0
    private void dumpProvider(String provider) {
        LocationProvider info = mgr.getProvider(provider);
        StringBuilder builder = new StringBuilder();
        builder.append("LocationProvider[" )
            .append("name=" )
            .append(info.getName())
            .append(",enabled=" )
            .append(mgr.isProviderEnabled(provider))
            .append(",getAccuracy=" )
            .append(A[info.getAccuracy() + 1])
            .append(",getPowerRequirement=" )
            .append(P[info.getPowerRequirement() + 1])
            .append(",hasMonetaryCost=" )
            .append(info.hasMonetaryCost())
            .append(",requiresCell=" )
            .append(info.requiresCell())
            .append(",requiresNetwork=" )
            .append(info.requiresNetwork())
            .append(",requiresSatellite=" )
            .append(info.requiresSatellite())
            .append(",supportsAltitude=" )
            .append(info.supportsAltitude())
            .append(",supportsBearing=" )
            .append(info.supportsBearing())
            .append(",supportsSpeed=" )
            .append(info.supportsSpeed())
            .append("]" );
        log(builder.toString());
    } 
 
    /** describe the given location, which might be null */ 
Stop searching for code, let great code find you!  Add Codota to your java IDE