Fixing preferences

You nearly had it all right.  You just do not understand the lifecycle quite right yet.  onCreate is called by Android just after the constructor is called.  Apart from setting default values of properties and configuring the view nothing goes in here.  Use onResume or onStart for these sort of facilities.  I personally use onResume for most of that sort of thing.

Signed-off-by: Damien Cooke <damien@smartphonedev.com>