Android mendapatkan digit dari string
str = str.replaceAll("\\D+","");
Spotless Stag
str = str.replaceAll("\\D+","");