Adding switch clause in onActivityResult method, deciding what to do after each result code returned (right now only LOCK_ACTIVITY).