Sorting with RuleBasedCollator may stop working in Android 5.0

If you are using the RuleBasedCollator in your app, you may get NullpointerException for your collator object if you do not properly initialize its constructor with a correctly formatted rule string. In Android 5.0 and later, the constructor expects to get a rule string that has a reset character in the first rule chain. Refer to the documentation: Note: earlier versions of RuleBasedCollator up to and including Android 4.4 (KitKat) allowed the omission of the reset from the

» Read more