question: public static int lookupHost ( String hostname ) { InetAddress inetAddress ; try { inetAddress = InetAddress . getByName ( hostname ) ; } catch ( UnknownHostException e ) { return - 1 ; } byte [ ] addrBytes ; int addr ; addrBytes = inetAddress . getAddress ( ) ; addr = ( ( addrBytes [ 3 ] & 0xff ) << 24 ) | ( ( addrBytes [ 2 ] & 0xff ) << 16 ) | ( ( addrBytes [ 1 ] & 0xff ) << 8 ) | ( addrBytes [ 0 ] & 0xff ) ; return addr ; }
target:  Transform host name in int value used by ConnectivityManager.requestRouteToHost method