Android Wifi ExampleThe android.net.wifi.WifiManager class can be used to manage the wifi connectivity. It can be used to add network, disable network, scan for access points, disconnect etc. Android wifi example to enable and disable wifiLet's see the simple example of wifi to enable and disable the wifi service. activity_main.xmlFile: activity_main.xml
Activity classFile: MainActivity.java
Add Permission in AndroidManifest.xmlYou need to add following permissions in AndroidManifest.xml file. Output:![]()
Next TopicAndroid Camera Tutorial
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week