Calling SharedPrefences on AppWidget

Posted by Rexx on Stack Overflow See other posts from Stack Overflow or by Rexx
Published on 2011-01-17T16:51:25Z Indexed on 2011/01/17 16:53 UTC
Read the original article Hit count: 123

Filed under:

Hello all, I would like to know if there is an issue with calling a sharedPeference value on an appWidget provider class so i can use it for an update. I have this code which i call on a method in the appWidget provider class, but it keeps giving me compilation error and that i should create a method for it. this is the code:

prefs = getSharedPreference("myPrefs", Context.MODE_PRIVATE);

is this a known issue and is there any other way i can pass the value from my configuration class, if this is not possible. Thank you

© Stack Overflow or respective owner

Related posts about android