[Android] Code refactoring
[Android] Added method to save allowShake and ShakeValue in SharedPreferences