To check GPS status
When the button is pressed, small pop up will be displayed to inform the status of GPS. GPS satellites has to be selected by user manually. You cannot enable the GPS directly in your code for various reasons such as battery drain and privacy.
Android Studio 1.0.2
The project can be downloaded from here.