java - Add a character in an EditText -
i need add character "s" right after last written number in edittext (oe) so: if write number : "123", must send "123s" instead. if write "1234", must send "1234s" instead. how ? my code: ((button) findviewbyid(r.id.btn_write_hrm_noty)).setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { str = oe.gettext().tostring(); str = str.substring(0, 0) + "g" + str.substring(0, str.length()); mservice.enablehrnotification(mdevice, str); } }); i'm little confused. asking how add character string? if so: str+='s'; work. add string edittext .settext(str) or put notification 's' added (as blundell suggested).