Hello, in my project I have a EditText
that receives a value entered by the user.
EditText etListName = (EditText) findViewById(R.id.etListName);
This value is converted to String
String stringEtListName = etListName.getText().toString();
After converting, I get the value stringEtListName
and create a table in the database, but if the user places any special characters and / or spaces, it needs to be removed because the database does not accept tables with the same.
How do I do these removals? Note: Remembering that I do not want you to remove the letter, I want you to remove only the special character or space. / p>
-- Certo
Usuário digitou: Lista Teste ãôé
Converção para: ListaTesteaoe
--Errado
Usuário digitou: Lista Teste ãôé
Converção para: ListaTeste
Att.
Giovani Rodrigo