Try this piece of code
Isn't there a getContext() method for SurfaceView? getContext().getSharedPreference(); Regards, Jayanand On Sat, Mar 9, 2013 at 4:26 PM, lselwd <[email protected]> wrote: > public class CannonView extends SurfaceView > implements SurfaceHolder.Callback > { > > > this is its class , of function > > On Saturday, March 9, 2013 11:43:08 AM UTC+2, lselwd wrote: >> >> I have problem working with SHARED PREFERENCES, I think is project >> specific... i used the same before without errors but now get error.... see >> attachments, well? >> > -- > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

