Java tutorial
//package com.java2s; //License from project: Open Source License import android.location.Criteria; public class Main { private static Criteria criteria; public static Criteria getGeoCriteria() { if (criteria == null) criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_MEDIUM); criteria.setPowerRequirement(Criteria.POWER_LOW); return criteria; } }