#Android 获得当前设备上可用Location Provider列表

#Android 获得当前设备上可用Location Provider列表
LocationManager locationManager;


locationManager  =  (LocationManager)UserLocationTest. this .getSystemService(Context.LOCATION_SERVICE);


List < String >  providers  =  locationManager.getAllProviders();
            
for (Iterator iterator  =  providers.iterator();iterator.hasNext();)
            {
                String provider 
=  (String)iterator.next();
                System.out.println(
" ==== "   +  provider  +   " === " );
            }








你可能感兴趣的:(#Android 获得当前设备上可用Location Provider列表)