Code example for LocationManager

Methods: getProvider

0
        LocationProvider p = manager.getProvider("bogus");
        assertNull(p);
    } 
 
    public void testGetNetworkProvider() { 
        LocationProvider p = manager.getProvider("network");
        assertNotNull(p);
    } 
 
    public void testGetGpsProvider() { 
        LocationProvider p = manager.getProvider("gps");
        assertNotNull(p);
    } 
 
    public void testGetBestProviderEmptyCriteria() { 
        String p = manager.getBestProvider(new Criteria(), true);
        assertNotNull(p);
    } 
 
    public void testGetBestProviderPowerCriteria() { 
        Criteria c = new Criteria();