Code example for Location

0
        if (properties == null) throw new NullPointerException("properties is null");
 
        mName = name;
        mLocationManager = locationManager;
        mProperties = properties;
        mLocation = new Location(name);
    } 
 
    @Override 
    public String getName() {
        return mName;
    } 
 
    @Override 
    public ProviderProperties getProperties() { 
        return mProperties;
    } 
 
    @Override 
    public void disable() { 
        mEnabled = false;