title: how to turn off location programatically in android
body: <p>I am trying to create my first android app in visual studio which is a simple widget that auto turns off location after a set period of time.I was wondering if  there is a way to turn off the location service using location manager without having the need to go to device settings. Any help will be appreciated. Thanx</p>