Refactor magic strings into constants
Change shared prefs commit to apply (as per doc) and consequently bump up minSDK from 8 to 9