Enhanced to read a preset.

This patch also changes structure of the activity and the fragments.
Because some fragments can not exist sometimes. So the activity cannot
read settings in views. Now the activity has data of a preset. Fragments
read/write the settings in the activity at onResume()/onPause().