Add preferences activity

Change-Id: I29a1423477269f6594ddb4631bd7b261475072ea