Android split not working correctly
Following code can be used for any pattern splitting.
String.split(Pattern.quote("any pattern you would like here !"));
arr = result.toString().trim().split("\\|");
the param of String.split accept a regular expression.