Code example for Criteria

Methods: setAccuracy

0
		AndroidMock.replay(appUtils);
		 
		SocializeLocationManager manager = new SocializeLocationManager(appUtils);
		manager.init(TestUtils.getActivity(this));
		 
		Criteria criteria = new Criteria();
		criteria.setAccuracy(Criteria.ACCURACY_COARSE);
		 
		String bestProvider = manager.getBestProvider(criteria, true);
		 
		assertNotNull(bestProvider);
		 
		// May be null, so don't assert result 
		manager.getLastKnownLocation(bestProvider);
		 
		manager.isProviderEnabled(bestProvider);
		 
		LocationListener listener = new LocationListener() {
			 
			@Override 
			public void onStatusChanged(String provider, int status, Bundle extras) {}