title: How do I find out programmatically which mode of Location is turned on?
body: <p>I am developing an application in which the user's location is tracked using the GPS provider only (device only mode of Location) . Therefore if the user sets his location priority to Approximate Location using Wifi and Data, the application wont work as intended. Therefore I need to check out the user selection of location mode (High accuracy, Approximate Location or Device only) programmatically and display appropriate dialog boxes. What would be a clean way to achieve this?</p>