get the human readable ip from WifiInfo

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

get the human readable ip from WifiInfo

Postby Vermouth » Sun Jun 14, 2009 10:04 am

Hello !

I need to get the device wifi ip.

I know the method android.net.wifi.WifiInfo.getIpAdress but this method return an integer.

Then, how i can get the ip from this integer ?
[2^31..2^24].[2^23..2^16].[2^15..2^8].[2^7..2^0] ?

I can't try, i haven't android phone for the moment...

Thank !

edit:Solved; [2^7..2^0].[2^15..2^8].[2^23..2^16].[2^31..2^24]
/!\ Bad English Speaker /!\
Tell me if a sentence is not corect :P
Vermouth
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Apr 15, 2009 2:01 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 6 guests