J jefflynn1974 Member Licensed User Longtime User Nov 29, 2013 #1 Hi, Is there any way to check the Location services are enabled? I would like to know that apps are being allowed to use location datas. Thanks! Jeff
Hi, Is there any way to check the Location services are enabled? I would like to know that apps are being allowed to use location datas. Thanks! Jeff
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2013 #2 You can check whether GPS is enabled (it doesn't mean that the GPS is actually on) with GPS.GPSEnabled. There are several other libraries that work with other location services. You should check them about other location services. Upvote 0
You can check whether GPS is enabled (it doesn't mean that the GPS is actually on) with GPS.GPSEnabled. There are several other libraries that work with other location services. You should check them about other location services.
J jefflynn1974 Member Licensed User Longtime User Dec 7, 2013 #3 First of all thanks for your reply. Your advices not exactly matched to my conceptions so I used another solution. You can see it below. B4X: Dim p as Phone p.GetSettings("location_providers_allowed") I got back "GPS" or "network" or "network,GPS" modes so I could decide from these that the Locaion service function is permitted or not. Upvote 0
First of all thanks for your reply. Your advices not exactly matched to my conceptions so I used another solution. You can see it below. B4X: Dim p as Phone p.GetSettings("location_providers_allowed") I got back "GPS" or "network" or "network,GPS" modes so I could decide from these that the Locaion service function is permitted or not.