Android: Use apply instead of commit for applying SharedPreference changes

This will apply changes asynchronously, so it gets rid of some blocking IO.
It probably doesn't matter, but is considered good practice.
Merge pull request #1225 from lioncash/android

Android: Use apply instead of commit for applying SharedPreference changes