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