added a demo preference

had to implement preference fragment since api 19 no longer supports
preference activity addpreferencesfromresource. to use as such, you have
to implement it in preference fragment if done manually instead of using
the android add activity class