I’m getting a text extracted from qrcode from my application, but as I am using zxing library its putting an extra DEMO at the end. How to remove it from there?
I was trying this but it does not work:
String aboutText = (Global.text).toString();
aboutText = aboutText.replace("DEMO", " ");
String.replace only takes chars as argument. Try String.replaceFirst(String, String) instead.
shout work. You can also take a look at replaceAll