Uri.getPort

int getPort()

Gets uri's port.

Returns

uri's port, or -1 if no port was specified.