Hi there I'm developing an Android app which relies heavily on TCP.
getCanonicalHostName() on Android 2.1 seems to always return an IP address instead of the host name. The documentation for getCanonicalHostName states: "If there is a security manager, this method first calls its checkConnect method with the hostname and -1 as its arguments to see if the calling code is allowed to know the hostname for this IP address, i.e., to connect to the host. If the operation is not allowed, it will return the textual representation of the IP address." So I assume there's a security manager installed and that it's disallowing my request. So my questions are, how can I check if a security manager is installed, and can I replace/modify it so that getCanonicalHostName() will work? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" 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-security-discuss?hl=en.
