Android 将文本从我的EditText字段发送到我的WCF

Android 将文本从我的EditText字段发送到我的WCF,android,wcf,android-layout,android-edittext,Android,Wcf,Android Layout,Android Edittext,我正在尝试将文本从editText发送到我的WCF。在大多数情况下,它似乎工作得很好,但当我写下例如:“Hello”然后按键盘上的enter键继续写东西时,我会得到一个错误:IllegalArgumentException:索引156处的非法字符。这是我在键盘上按enter键的时候。 (当我不使用enter按钮时,整个过程都会工作) 我仍然希望我的编辑文本是多行的 当用户键入包含enterclick的内容时,如何才能将文本发送到我的wcf 我是否可以删除enterbutton并将其替换为“下一个

我正在尝试将文本从editText发送到我的WCF。在大多数情况下,它似乎工作得很好,但当我写下例如:“Hello”然后按键盘上的enter键继续写东西时,我会得到一个错误:IllegalArgumentException:索引156处的非法字符。这是我在键盘上按enter键的时候。 (当我不使用enter按钮时,整个过程都会工作)

我仍然希望我的编辑文本是多行的

当用户键入包含enterclick的内容时,如何才能将文本发送到我的wcf

我是否可以删除enterbutton并将其替换为“下一个”och“完成”

我试着用它来代替它

invoiceText = invoiceText.replace("/n", "//n");
但是没有成功

我的编辑文本:

        <EditText
    android:id="@+id/descriptionEditText"
    android:layout_width="wrap_content"
    android:layout_height="340dp"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:layout_below="@+id/InputTextTitle"
    android:layout_marginTop="35dp"
    android:inputType="textMultiLine"
    android:gravity="top|left" >
</EditText>


我的天啊,现在我觉得自己太蠢了:-)顺便说一句。。当我改变它时,它起作用了。谢谢你,伙计/掌纹
            DefaultHttpClient httpClient = new DefaultHttpClient();

        HttpGet httpGet = new HttpGet(URL + "/RegisterTime?userName=" + userName +  "&customerId=" + customerID + "&timeInvoiced=" + timeInvoice + "&timeWorked=" + timeWork + "&date=" + date + "&invoiceText=" + invoiceText);

        HttpResponse httpResponse = httpClient.execute(httpGet);

        HttpEntity httpEntity = httpResponse.getEntity();

        InputStream stream = httpEntity.getContent();

        String result = converter(stream);

        Log.v("Result registerTime", result);

        if(result != "-1" && result != "0"){
            return true;
        }
_phoneDAL.registerTime(id, timeDiffWorkTime, Integer.parseInt(_userName), selectedCustomer, timeDiffInvoiced, selectedDate, description);