All Projects → jflavio11 → WifiConnector

jflavio11 / WifiConnector

Licence: other
Library to manage Wi-Fi Connections on Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to WifiConnector

WiFiConnect
WiFi connection manager for ESP32 and ESP8266 with OLED support
Stars: ✭ 28 (-64.1%)
Mutual labels:  wifi-network, wifi-configuration, wifimanager
wifisdk
Free WiFi Connect SDK
Stars: ✭ 28 (-64.1%)
Mutual labels:  wifi-network
scale-network
SCaLE's on-site expo network configurations, wifi, tooling, and scripts
Stars: ✭ 13 (-83.33%)
Mutual labels:  wifi-network
PiBootstrapper
Windows app to configure Raspbian SD card image before first boot
Stars: ✭ 40 (-48.72%)
Mutual labels:  wifi-configuration
Connectivity
🌐 Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access.
Stars: ✭ 1,476 (+1792.31%)
Mutual labels:  wifi-network
wifi-bf
A (completely native) python3 wifi brute-force attack using the 100k most common passwords (2021)
Stars: ✭ 20 (-74.36%)
Mutual labels:  wifi-network
connection checker
Android library for checking the internet connectivity of a device.
Stars: ✭ 26 (-66.67%)
Mutual labels:  wifi-network
krackattack-all-zero-tk-key
This code has base on a code made by Mathy Vanhoef (https://github.com/vanhoefm/krackattacks-poc-zerokey). Please, take a look on README.md. Enjoy!
Stars: ✭ 47 (-39.74%)
Mutual labels:  wifi-network
Easy-HotSpot
Easy HotSpot is a super easy WiFi hotspot user management utility for Mikrotik RouterOS based Router devices. Voucher printing in 6 ready made templates are available. Can be installed in any PHP/MySql enabled servers locally or in Internet web servers. Uses the PHP PEAR2 API Client by boenrobot.
Stars: ✭ 45 (-42.31%)
Mutual labels:  wifi-network
pycameresp
Motion detection with image notification for Esp32CAM and Esp32 flasher with GUI based on esptool.py.
Stars: ✭ 40 (-48.72%)
Mutual labels:  wifimanager
ESPAsync WiFiManager
This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With ex…
Stars: ✭ 244 (+212.82%)
Mutual labels:  wifimanager
Wifi Password
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Stars: ✭ 2,325 (+2880.77%)
Mutual labels:  wifi-network
WiFiManager
ESP8266/ESP32 WiFi Connection manager with web captive portal
Stars: ✭ 39 (-50%)
Mutual labels:  wifimanager
Wifi-Cracker
Wifi Cracking
Stars: ✭ 128 (+64.1%)
Mutual labels:  wifi-network
wap
give guests access to your WiFi with style
Stars: ✭ 17 (-78.21%)
Mutual labels:  wifi-network
Airscript-ng
A python script to simplify the process of auditing wireless networks.
Stars: ✭ 83 (+6.41%)
Mutual labels:  wifi-network
ESPAsync WiFiManager Lite
Library using AsyncWebServer to configure MultiWiFi/Credentials at runtime for ESP32 (including ESP32-S2 and ESP32-C3) and ESP8266 boards. You can also specify DHCP HostName, static AP and STA IP. Use much less memory compared to full-fledge WiFiManager. Config Portal will be auto-adjusted to match the number of dynamic custom parameters. Option…
Stars: ✭ 48 (-38.46%)
Mutual labels:  wifimanager
network-interface
Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.
Stars: ✭ 24 (-69.23%)
Mutual labels:  wifi-network
wifi-pentesting-guide
WiFi Penetration Testing Guide
Stars: ✭ 105 (+34.62%)
Mutual labels:  wifi-network
NetworkManager-WiFi-WebUI
Web interface (python2/twisted) for NetworkManager daemon to manage WiFi connections
Stars: ✭ 42 (-46.15%)
Mutual labels:  wifi-configuration

WifiConnector


Open source library for Android to connect and manage Wifi Networks

Requirements

  • API > 19
  • Since Android 6, you are able to configure WifiNetworks that your app has created, you cannot edit wifi configurations from others apps (Unless you are developing a system application).

Import

Using Gradle

  • Add this on your root build.gradle of your project:

     allprojects {
     	repositories {
     			...
     	    maven { url 'https://jitpack.io' }
     	}
     }
    
  • And add the dependency:

     compile 'com.github.jflavio1:WifiConnector:v1.7'
    

Using Maven

  • Add to you build file

     <repositories>
     	<repository>
     	   <id>jitpack.io</id>
     	    <url>https://jitpack.io</url>
     	</repository>
     </repositories>
    
  • And the dependency

     <dependency>
     	<groupId>com.github.jflavio1</groupId>
     	<artifactId>WifiConnector</artifactId>
     	<version>v1.7</version>
     </dependency>
    

Example

	// First initializate a WifiConnector object
	WifiConnector connector = new WifiConnector(this, "NEW_SSID", "NEW_BSSID", "WEP", "wifiPassword")
	// you could register wifi state listener
	.registerWifiStateListener(new WifiStateListener() {
            @Override
            public void onStateChange(int wifiState) {
                
            }

            @Override
            public void onWifiEnabled() {
                // here you should start your network operations
            }

            @Override
            public void onWifiEnabling() {
                
            }

            @Override
            public void onWifiDisabling() {
                
            }

            @Override
            public void onWifiDisabled() {
                
            }
        })
	// and register wifi connection listener
	.registerWifiConnectionListener(new ConnectionResultListener() {
            @Override
            public void successfulConnect(String SSID) {
                Log.d("MyTag", "Success connecting to Access Point " + SSID);
            }

            @Override
            public void errorConnect(int codeReason) {
                
            }

            @Override
            public void onStateChange(SupplicantState supplicantState) {
                
            }
        })
	// and after register all listeners you want, you sould enable wifi and connect to the access point
	.enableWifi().connectToWifi();
	
		
	**OR SIMPLY**
	WifiConnector connector = new WifiConnector(this, "NEW_SSID", "NEW_BSSID", "WEP", "wifiPassword");
		
	connector.enableWifi();
		
	connector.connectToWifi(new ConnectionResultListener() {
            @Override
            public void successfulConnect(String SSID) {
                
            }

            @Override
            public void errorConnect(int codeReason) {

            }

            @Override
            public void onStateChange(SupplicantState supplicantState) {

            }
        });
		
		
		
	// And do not forget to unregister your wifi listeners on the onStop() or onDestroy() method
	connector.unregisterListeners(wifiConnector.wifiStateReceiver, wifiConnector.wifiConnectionReceiver);
	

Important!

Since 1.4 enableWifi() method is not on constructors anymore, you must call it explicity Since 1.2-beta1 listeners are not inside WifiConnector class, so you must call them as a single class.

Remember, you have to put these permissions on your Manifest:

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

And location services must be turned on!!

All tests and suggestions are well received.


License

Copyright © 2018 JoseFlavio.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].