I'm working on an Android project which give the user the possibility to turn on his GPS. His position is requested to launch the application.

After activation, I use getLastKnownLocation of LocationManager but this method returns a Location indicating the data from the last known location fix obtained from the given provider. The doc explains that this can be done without starting the provider. Note that this location could be out-of-date, for example if the device was turned off and moved to another location. 

However the user activate localization services. So turn on the GPS is not enough to launch the GPS as it's done by Google Maps by showing an icon at the top of the device and retrieving GPS coordinates. This icon doesn't appear when my application gives the user the possibility to activate the GPS (seems weird).

Theards I already read use getLastKnownLocation method after choosing the best provider. Questions are did I miss something after turning on the GPS services? Did the GPS is automatically launch when the GPS is activated?

I already ask [this](https://stackoverflow.com/questions/20067751/retrieve-the-last-known-location-when-the-smartphone-was-turned-off-a-long-time), but not enough answer.