0

in Setting > Location,

How can I know check status of 'WiFi & mobile network location'?

Click on this, show up 'Location consent' dialog.

screenshot link

Soyeon Kim
  • 608
  • 7
  • 34
  • 1
    check [this](http://stackoverflow.com/questions/10311834/how-to-check-if-location-services-are-enabled) and [this](http://stackoverflow.com/questions/2973290/check-wifi-and-gps-isconnected-or-not-in-android) and a lot of other answers on `SO` – hrskrs Feb 05 '15 at 08:41

1 Answers1

0

You can use the WifiManager class to get the state of Wi-Fi.

Check android.provider.Settings for a series of Intent actions you can use to launch various settings screens (such as ACTION_WIFI_SETTINGS)

So for WIFI-Settings you just have to add the following line

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

For GPS there is a detailed explanation on this link

Community
  • 1
  • 1
hrskrs
  • 4,447
  • 5
  • 38
  • 52