InetAddress.getByName() não aceita conteúdo de EditText [Resolvido]

Olá, eu tenho o seguinte código:

[code]import java.net.InetAddress;
import java.net.UnknownHostException;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class Pega_IPActivity extends Activity {
/** Called when the activity is first created. */
EditText edtEndereco;
Button btnGerar;
TextView txtIP;

InetAddress inet = null;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    
    edtEndereco = (EditText) findViewById(R.gerar.edtEndereco);
    btnGerar = (Button) findViewById(R.gerar.btnPegar);
    txtIP = (TextView) findViewById(R.gerar.txtIP);
    
    btnGerar.setOnClickListener(new View.OnClickListener() {
		
		public void onClick(View arg0) {
			try {
				inet = InetAddress.getByName(edtEndereco.getText());
			} catch (UnknownHostException ex) { 
				txtIP.setText("Servidor não encontrado!");
			}
			txtIP.setText("IP: " + inet.getHostAddress());
			
		}
	});
}

}[/code]

O erro está na linha:

inet = InetAddress.getByName(edtEndereco.getText());

A IDE informa o erro:
The method getByName(String) in the type InetAddress is not applicable for the
arguments (Editable)

Como eu posso converter o tipo Editable para String?

Obrigado.

Consegui! Foi só setar como string:

Puxa, o compilador deveria fazer uma conversão implícita…