Hardcoded strings moved to xml
Handled possible nullpointer exception. Collapsed catch blocks
Moved hardcoded preference keys, summaries, and titles to string resource file