In this thread MSohm says "The GPS Services option does not toggle GPS on or off". This means that if a device has a built-in GPS receiver, then the code like this
LocationProvider provider = LocationProvider.getInstance(null);
should never return null regardless of GPS Services option.
But if I try the above code on both Curve 8310 (4.5.0) and Storm 9530 (4.7.0) simulators (both have a built-in GPS receiver), then i get null if GPS Services option is set to Location OFF. If I change GPS Services option to Location ON, then I get a non-null LocationProvider and I am able then to get locatoin, etc.
Is this a bug of simulators? Can anyone say how this would work on real device?
Thanks!