Android SharedPreferences in Fragment
===

I am trying to read SharedPreferences inside Fragment. I get error 

        Cannot make a static reference to the non-static method getSharedPreferences(String, int) from the type ContextWrapper    

I have tried to follow these links but with no luck <http://stackoverflow.com/questions/3806051/accessing-sharedpreferences-through-static-methods> and 
<http://stackoverflow.com/questions/6241340/static-sharedpreferences>. Thank you for any solution.