Does ScanResult.level (signal level) have a max and min value?
I want to show a wi-fi signal level image, but I have to know if ScanResult.level has a max and min value for matching right image.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you can read in the document you linked to, that value is specified in dBm. Designing the mapping between dBm and bars is a more complicated issue than you may think – remember the whole story about iPhone losing signal when being hold in a “wrong” manner? It was mostly just a badly designed dBm-to-bars mapping: http://www.anandtech.com/show/3821/iphone-4-redux-analyzing-apples-ios-41-signal-fix
You can quite safely assume, that this value will range between -10 and -100 dBm (based upon taking a look at WiFi Analyzer app and Wikipedia article about dBm), but you shouldn’t use a linear mapping. Take a look at the graphs in the article about iPhone for the idea how it should look.