support for api level 4 preferences