• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Is there way to check if the GPS is enabled programmatically

dduphorn

Lurker
Hello,

I'm working on some automated test using Appium and Selenium. I'm able to toggle the gps control that enable and disable it, but I'm unable to get the current status of the gps which makes it difficult to switch between test with and without gps.

I've tried using adb shell commands, but I was unable to location the sys dump that would give me the information needed.

Thanks for any help you can provide.


DD
 
Back
Top Bottom