Archives for: "June 2012"
Resource Not Found in Android
I have tried to get a string resource via getResources().getString(R.string.msg_err). Under values/strings.xml. I am 100% sure there is msg_err value. But I still got Resource$NotFoundException. But after I added msg_err1 value in text view mode, that… more »
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… more »