Convert DhcpInfo.dns into a readable IP
DhcpInfo.dns1 and DhcpInfo.dns2 is an integer, not a readable IP string,"x.x.x.x". That is hard to understand. I did a search in internet. There are a number of people to write their own function to do that. Actually, Android SDK has a formatter to do that.
Code
Formatter.formatIpAddress(info.dns1) |
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
Feedback awaiting moderation
This post has 25 feedbacks awaiting moderation...
Form is loading...