0
WifiManager wifi = = (WifiManager) uMobility.getContext().getSystemService(Context.WIFI_SERVICE); 
int rssi = wifi.getConnectionInfo().getRssi(); // for geting RSSI

I want to collect signal strength of the wifi in dbm on my android device. Then i need to pass this value in Java server.

I searched for all the codes on google I came across this. The last line gives me the rssi values.

I am new to android. Could anyone help me but how can I get from which router i am accessing ? What would be the code for that ? WHere should I write the mac address from which it should access ?

Thanks

Xylo_matic
  • 163
  • 1
  • 2
  • 10
  • You can find the equation here http://stackoverflow.com/questions/15797920/how-to-convert-wifi-signal-strength-from-quality-percent-to-rssi-dbm – BigT Feb 12 '14 at 18:12
  • @BigT I am telling where should I write that from which router it should access. Would it be mac address or something ? – Xylo_matic Feb 12 '14 at 18:22

0 Answers0