Made preferences work on API 10 and abstracted Sherlock Activities.