I am using SDK m5 and attempting to access the list of Location Providers as follows:
mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
List<LocationProvider> providers = mLocationManager.getProviders();
The returned list, "providers", is always empty. There should be at least one default mock provider, "gps". I verified that the mock "gps" provider is in data/misc/location. I have no idea why the getProviders() method is returning an empty list.
I read somewhere that including the following permission in my manifest file would solve the problem.
<uses-permission android:name="android.permission.ACCESS_LOCATION " />
Including the above permission did not help...
Please help, thx!