public String getDeviceName() {
        InetAddress ipAddr;
        StringBuilder hostName = new StringBuilder();

        try {
            ipAddr = InetAddress.getLocalHost();
            hostName.append(ipAddr.getHostName() );
        } catch (UnknownHostException ex) {
            ex.printStackTrace();
        }
        
        return hostName.toString();
    }