Hello Android Developers, I am working on a program that will connect to a time server (time- a.nist.gov), retrieve the timestamp, and place it in a text field.
However, when I create the socket, I get an UnknownHost Exception for time-a.nist.gov Some ideas I've gotten to fix it: 1. put the <uses-permission android:name="android.permission.INTERNET" /> tag right before the </ manifest> tag. I did this, and the change is still there. 2. use the static InetAddress.getByName() function to convert to an IP address (this still throws the same exception) When I pass the IP address (129.6.15.28) to the socket constructor, the program works fine. It only breaks when I use the actual domain name. Another note. I have written this program in Java and it works perfectly fine. If anyone has any ideas, I'd love to hear them! Thank you! -- 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

