This Android Studio project provides a simple application for controlling WiFi settings on devices running Android. The app includes two buttons, allowing users to enable or disable WiFi with ease.
- WiFi Control: Toggle WiFi on or off using dedicated buttons.
- Compatibility: Supports devices running Android Q (10) and above, as well as earlier versions.
Follow these steps to set up and run the project on your local machine:
-
Clone the Repository:
git clone https://github.com/atiquz/AndroidStudioWiFiControl.git
-
Open in Android Studio:
- Launch Android Studio.
- Choose "Open an Existing Project" and select the cloned directory.
-
Build and Run:
- Build the project using the "Build" menu in Android Studio.
- Run the app on an emulator or a connected Android device.
-
Enable WiFi:
- Click on the "Enable WiFi" button (
button01
) to turn on WiFi.
- Click on the "Enable WiFi" button (
-
Disable WiFi:
- Click on the "Disable WiFi" button (
button02
) to turn off WiFi.
- Click on the "Disable WiFi" button (
- The app utilizes the new WiFi settings panel introduced in Android Q. For devices running earlier versions, it falls back to the traditional method using
WifiManager
.
Feel free to contribute to the project by submitting bug reports, feature requests, or pull requests. Your contributions are highly appreciated.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Android development community for valuable resources and support.