Android recebe dígitos da string
str = str.replaceAll("\\D+","");
Spotless Stag
str = str.replaceAll("\\D+","");