add preference activity example