I am trying to remove all spaces from a string obtained from user input, but for some reason it does not work for me. Here is my code.
public void onClick(View src) { switch (src.getId()) { case R.id.buttonGo: String input = EditTextinput.getText().toString(); input = String.replace(" ", ""); url = ur + input + l; Intent myIntent = new Intent(start.this, Main.class); myIntent.putExtra("URL", url); start.this.startActivity(myIntent); break; } }
android string replace trim
Slicekick Aug 03 '11 at 19:31 2011-08-03 19:31
source share