Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

public class Main {
    /**
     *
     * @param context
     * @return
     */
    public static String whatGps(Context context) {
        String gs = android.provider.Settings.Secure.getString(context.getContentResolver(),
                android.provider.Settings.Secure.LOCATION_PROVIDERS_ALLOWED);
        return gs;
    }
}