Create PreferenceActivity

little fix LockActivity and MainActivity