All Projects → yibawifi → wifisdk

yibawifi / wifisdk

Licence: Apache-2.0 license
Free WiFi Connect SDK

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to wifisdk

Wi-Fi Study Public
The study resources of Wi-Fi protocols and resources.
Stars: ✭ 357 (+1175%)
Mutual labels:  wifi, wifi-network, wireless-network
Connectivity
🌐 Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access.
Stars: ✭ 1,476 (+5171.43%)
Mutual labels:  wifi, wifi-network, internet-access
WifiManager
简化Android Wifi开发,已实现常用的功能,比如获取WiFi管理,WiFi列表,断开、清除或者连接WiFi。
Stars: ✭ 133 (+375%)
Mutual labels:  wifi, wifi-network
scale-network
SCaLE's on-site expo network configurations, wifi, tooling, and scripts
Stars: ✭ 13 (-53.57%)
Mutual labels:  wifi, wifi-network
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 (+8203.57%)
Mutual labels:  wifi, wifi-network
wifi-pentesting-guide
WiFi Penetration Testing Guide
Stars: ✭ 105 (+275%)
Mutual labels:  wifi, wifi-network
network-interface
Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.
Stars: ✭ 24 (-14.29%)
Mutual labels:  wifi, wifi-network
python-wifi-survey-heatmap
A Python application for Linux machines to perform WiFi site surveys and present the results as a heatmap overlayed on a floorplan
Stars: ✭ 231 (+725%)
Mutual labels:  wifi, wireless-network
connection checker
Android library for checking the internet connectivity of a device.
Stars: ✭ 26 (-7.14%)
Mutual labels:  internet, wifi-network
Linux Wifi Hotspot
Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
Stars: ✭ 434 (+1450%)
Mutual labels:  internet, wifi
1btn
1btn (one button) uses the internet to complete a task with the simple, satisfying click of a single button. It connects to the internet over Wi-Fi to trigger whatever action you have assigned to it using a simple, online interface. One click, one task. It’s that simple. Unlike many other “Internet of Things” devices, 1btn does not maintain a continuous connection to the internet. Instead, it sleeps until it is pressed, then it connects to the internet, performs the assigned task, tells you the outcome via its multi-colored LEDs, and then returns to rest.
Stars: ✭ 117 (+317.86%)
Mutual labels:  internet, wifi
Freewifi
How to get free wifi.
Stars: ✭ 2,701 (+9546.43%)
Mutual labels:  wireless-network, internet-access
direct-net-share
share internet via Wifi direct on Android
Stars: ✭ 36 (+28.57%)
Mutual labels:  internet, wifi
Offline-Browser-Android-App
SMS Based Browser for Android Devices for Retrieving Web Contents without WiFi/Internet.
Stars: ✭ 20 (-28.57%)
Mutual labels:  internet, wifi
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (+8771.43%)
Mutual labels:  internet, wifi
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 (+60.71%)
Mutual labels:  wifi, wifi-network
WiFi-View
在 Android 设备上快速查看与管理保存的 WiFi 密码
Stars: ✭ 15 (-46.43%)
Mutual labels:  wifi
ESP32 IMU BARO GPS VARIO
GPS altimeter/variometer with LCD display, routes with waypoints, data/gps track logging, bluetooth NMEA sentence transmission, wifi AP + webpage configuration
Stars: ✭ 72 (+157.14%)
Mutual labels:  wifi
vertex
Vertex is a generalized, secure, peer-to-peer communications platform; formerly of the divmod.org project (https://code.launchpad.net/divmod.org/)
Stars: ✭ 74 (+164.29%)
Mutual labels:  internet
ApeX
Using Social Engineering To Obtain WiFi Passwords
Stars: ✭ 87 (+210.71%)
Mutual labels:  wifi

中文

We Share WiFi SDK Development Instructions 2.1.8

Update logs v2.1.8

  • Optimize SDK init process.
  • Fixed some bugs.
  • Fixed EAP WiFi bugs.

SDK Demo

  • Download the newest version of SDK demo from the Official Website Of WeShare SDK or Github
  • Note: Since the SDK demo is structured of Android Studio, the demo should be opened with Android Studio. Error will occur if open with eclipse.

Android studio package integration steps

1、In the build.gradle document of your app module, add:

dependencies {
    compile 'com.yiba:wifisdk:latest.release'
    //The latest.release refers to the newest version number.
    //It may also refers to the a specific version number, for example 2.1.5
}

To check the newest version number, please click jcenter

Please see a sample of the newest version as follows:

2、Init SDK on your Application class

//Add this code in your Application class
WiFiSDKManager.getInstance().init(getApplicationContext());

3、Open the WiFi interface

Intent intent = new Intent( MainActivity.this , YIbaWifiActivity.class) ;
startActivity( intent );

See below for an example

4、Common API instructions(Please note: The API below must be used in Android main Thread or mistakes will appear)

//Set token SDK.  please go to the official website (http://www.pegasus-mobile.com/) to get.
//If the token is not set, you will not be able to get shared WiFi; SDK's partial functionality will not be used.
WiFiSDKManager.getInstance().setToken( this , "your app token");

//Get shared WiFi notification status:
//true:On     false:Off     Default setting:true.
 WiFiSDKManager.getInstance().getSharedWifiToggle( this ) ;

//Get shared WiFi notification status:
//true:On    false:Off     Default setting:true
//If you set as false, then you will not receive any notifications of free WiFi.
WiFiSDKManager.getInstance().setSharedWifiToggle( this , true );

//Get open WiFi notification status:
//true:On   false:Off     Default setting:true
 WiFiSDKManager.getInstance().getOpenWifiToggle( this ) ;

//Turn on/off open WiFi notification status:
//true:On   false:False   Default setting:true
//If you set as false, then you will not receive any notifications of open WiFi.
WiFiSDKManager.getInstance().setOpenWifiToggle( this , true );

//Get the notification bar display status:
//true:On   false:Off     Default setting:true
WiFiSDKManager.getInstance().getNotificationToggle( this ) ;

//Set the notification bar display status:
//true:On   false:Off     Default setting:true
//If the display status is set as false, the wifi notification in the notification center will disappear.
WiFiSDKManager.getInstance().setNotificationToggle( this , true );

//finish YIbaWifiActivity
WiFiSDKManager.getInstance().setYibaActivityFinish( context );

5、Custom Notification

5.1 If you need a custom notification, you need to close the default notification
//Close Share WiFi notification
WiFiSDKManager.getInstance().setSharedWifiToggle( this , false );
//Close Open WiFi notification
WiFiSDKManager.getInstance().setOpenWifiToggle( this , false );
5.2 Custom BroadcastReceive to receive SDK passed over the JSON data
public class NotificationReveicer extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        //IntentConstant.ACTION_YIBA_WIFI_NOCIFICATION is the value of the Intent of our definition of action
        if (IntentConstant.ACTION_YIBA_WIFI_NOCIFICATION.equals(action)) {
            //IntentConstant.NOTIFICATION_JSON_DATA is the data we passed through Intent, the data is JSON
            //JSON data sample:{"type":0,"count":1}
            String json = intent.getStringExtra(IntentConstant.NOTIFICATION_JSON_DATA);
            ...
            //You can write custom notification code here
        }
    }
}
5.3 JSON data sample
JSON data sample, as:{"type":0,"count":1}

type value of 0, indicating that the Share WiFi type; type value of 1, indicating that the type of Open WiFi.

The count value indicates the number of WiFi types.
5.4 Registering the Custom BroadcastReceive in AndroidManifest.xml
<receiver android:name=".NotificationReveicer">
    <intent-filter>
        <action android:name="com.yiba.action.ACTION_YIBA_WIFI_NOTIFICATION"/>
    </intent-filter>
</receiver>

6、Custom UI

6.1、 How to customize the title UI in WiFi list interface

In your project create Layout XML File: yiba_wifi_custom_layout.xml

For example:

Please note:

  1. The name of the Layout XML File must be: yiba_wifi_custom_layout.xml and cannot be changed.
  1. Your project ID must contain android:id="@+id/yiba_custom_layou_fram". This cannot be deleted or changed. The function of the ID is to control the click event of back button and finish current activity
6.2、 How to customize the title of setting interface

In your project create a Layout XML File: yiba_wifi_custom_setting_layout.xml

For example:

Please note:

  1. The name of the Layout XML File must be yiba_wifi_custom_setting_layout.xml and cannot be changed
  1. Your project ID must contain android:id="@+id/yiba_custom_layou_setting". This cannot be deleted or changed. The function of the ID is to control the click event of back button and finish current activity.
6.3、 How to receive the click event for the returned icon

1、Add in your app module's AndroidManifest.xml

       <!--  Customize the broadcast receiver -->

        <receiver
            android:name=".YibaReceiver"
            android:enabled="true"
            android:exported="true">

            <intent-filter >
                <action android:name="yiba_activity_back_onclick"/>
            </intent-filter>

        </receiver>

2、Create a new YibaReceiver class

public class YibaReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if ( intent == null ) return;
        if( TextUtils.equals(intent.getAction(), "yiba_activity_back_onclick")) {
            //the back image is clicked
        }
    }
}

7、Code obfuscation instructions

7.1、Please make sure to add these in the proguard-rules.pro document:
-keep class android.support.v7.**{*;}
-keep class android.support.v4.**{*;}
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].