Looking at above comment thread it seems its possible to turn OFF GPS programatically (But seeing only 12 Upvotes)
But if you switch OFF GPS from your application programatically, what if other applications use GPS Service ?
The solution would be like
Open Settings
of android and then tell user to turn OFF GPS when he exits from the application...
For this you can do like :
Intent i = new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(i);
OR
You can try like
locationManager.removeUpdates(myLocationListener);
locationManager = null;
This shutdown gps for this app, but its still available for use by other apps.