Android dostaj cyfry z ciągu
str = str.replaceAll("\\D+","");
Spotless Stag
str = str.replaceAll("\\D+","");