Get context before starting activity result