New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com.techibi:vibwifi_lib

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.techibi:vibwifi_lib

This Android library used to Scan Wifi single or multiple times and get connect the scaned wifi

  • 0.1.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

VibWifi

This Android library used to Scan Wifi single or multiple times and get connect the scaned wifi

Anyone can simple scan and connect the wifi using vibwifi library

Add vibwifi library via dependencies

compile 'com.techibi:vibwifi_lib:0.1.1'

Enable Location permission in manifest file

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

You can scan wifi using below code

vibwifi vib= new vibwifi();
vib.StartScan(MainActivity.this,1000);

For single scan use below code

vibwifi vib= new vibwifi();
vib.singlescan(MainActivity.this);

Get scanned results via intent

  private BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {

            updateUI(intent);
        }
    };

   @Override
    public void onPause() {
        super.onPause();
        unregisterReceiver(broadcastReceiver);
    }

    @Override
    public void onResume() {
        super.onResume();
       // startService(intent);
        registerReceiver(broadcastReceiver, new IntentFilter(MultipleScan.BROADCAST_ACTION));
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        unregisterReceiver(broadcastReceiver);

    }

You can also connect the wifi using below codes

vib.connectwifi(getApplicationContext(),ssid,password);

Marshmallow devices need runtime permissions

if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){
   requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},
                 PERMISSIONS_REQUEST_CODE_ACCESS_COARSE_LOCATION);

}else{

 vibwifi vib= new vibwifi();
 vib.singlescan(MainActivity.this);
   
}

@Override
 public void onRequestPermissionsResult(int requestCode, String[] permissions,
         int[] grantResults) {
     if (requestCode == PERMISSIONS_REQUEST_CODE_ACCESS_COARSE_LOCATION
             && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
         // Do something with granted permission
         
         vibwifi vib= new vibwifi();
        vib.singlescan(MainActivity.this);
       
     }
 }

FAQs

Package last updated on 28 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc