I'm trying to sort an ArrayList in my Android app, but its throwing an exception. Here's the part of my code where it happens:
List<PackageInfo> packs = getPackageManager().getInstalledPackages(0);
Collections.sort(packs);
Does anybody have any ideas?