Code example for InetAddress

Methods: getHostName

0
            appendChatMessage("* (!) Received Intent without message"); 
            return; 
        } 
 
        String message = intent.getStringExtra(EXTRA_MESSAGE);
        String sender  = address.getHostName();
 
        appendChatMessageFromSender(sender, message);
    } 
 
    @Override 
    public void onClick(View v) {
        sendChatMessage(); 
    } 
 
    @Override 
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
        if (actionId == EditorInfo.IME_ACTION_SEND) {
            sendChatMessage(); 
            return true; 
Connect your IDE to all the code out there  Get Codota for Java