Code example for LocationProvider

0
    boolean mSupportsBearing; 
    int mPowerRequirement; 
    int mAccuracy; 
 
    public DummyLocationProvider(String name, ILocationManager service) { 
        super(name, service); 
    } 
 
    public void setRequiresNetwork(boolean requiresNetwork) { 
        mRequiresNetwork = requiresNetwork; 
    } 
 
    public void setRequiresSatellite(boolean requiresSatellite) { 
        mRequiresSatellite = requiresSatellite; 
    } 
 
    public void setRequiresCell(boolean requiresCell) { 
        mRequiresCell = requiresCell; 
    }