Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}