Android recebe dígitos da string

str = str.replaceAll("\\D+","");
Spotless Stag