Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • get strength of wifi in your android device

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 157
    Comment on it

    If you want to get the strength of some wifi , you can use wifi manager class and can get list of available wifis like this

    1. WifiManager manager;
    2. manager = (WifiManager) getSystemService(WIFI_SERVICE);
    3. List<ScanResult> res = manager.getScanResults();
    4. int level = getPowerPercentage(res.get(0).level);

    Method to find wifi signal stength like this :

    1. public int getWifiPercentage(int pow) {
    2. int i = 0;
    3. int MIN = -100;
    4. if (power <= MIN) {
    5. i = 0;
    6. } else {
    7. i = 100 + power;
    8. }
    9. return i;
    10. }

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: