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