Hello,
I need help with identifying if the "Location and Security > Use Wireless Networks" is enabled or not.
Am able to identify if GPS is enabled or not by using the following line from the GPS tutorial...
Similarly, would like to identify if the Use wireless Networks option is enabled or not, for the purpose of picking location from the cell tower.
Thanks,
Siddharth
I need help with identifying if the "Location and Security > Use Wireless Networks" is enabled or not.
Am able to identify if GPS is enabled or not by using the following line from the GPS tutorial...
B4X:
If GPS1.GPSEnabled = False Then
Dim Choice As Int
Choice = Msgbox2("GPS is disabled. Click OK to enable", "", "OK", "Cancel","", Null)
If Choice = DialogResponse.POSITIVE Then
StartActivity(GPS1.LocationSettingsIntent) 'Will open the relevant settings screen.
Else If Choice = DialogResponse.CANCEL Then
Return False
End If
Else
GPS1.Start(0,0) 'Listen to GPS with no filters.
End If
Similarly, would like to identify if the Use wireless Networks option is enabled or not, for the purpose of picking location from the cell tower.
Thanks,
Siddharth