I was able to get the NetworkInterface by parsing the file 
"/proc/net/wireless" and get the correct interface name ( it is different 
on diffrent devices) and then get the network interface object then use it 
for the MTU so problem 2 is solved , Does anyone have an idea for problem 
1? 

On Thursday, March 21, 2013 5:26:50 PM UTC+2, tom wrote:
>
> HI ,
>
> I have an APP that get some information from the AP that i am connected to 
> such as SSID . BSSID , IP . Name ,  etc ...
> I am trying to get this information from it:
>
> 1.When my APP is loaded it check if its connectd to WIFI or not and if SO 
> i want to know if i am connected to 5G or 2.4G access point , 
> i couldn't find any way to retrieve this info from WifiInfo , OR connection 
> Manager  , the only point that i can see this info is from the 
> wifi.ScanResult 
> :
> public 
> intfrequency<http://developer.android.com/reference/android/net/wifi/ScanResult.html#frequency>The
>  
> frequency in MHz of the channel over which the client is communicating with 
> the access point.My question is how can i get this info only by running 
> my app and get it from the connected AP ?
>
> 2.What is the best way to get my WIFI interface to get the MTU ? , how do 
> i know what is my WIFI interface  in any specific HW (there 
> are different names on each device?)
>
> Thanks,
> Tom
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to