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).


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -