I'm working on a home replacement app. I need to get shared preferences inside my PageAdapter so I can change icon size and a couple of other aspects of the launcher.

When using:

```
public class MyPagerAdapter extends PagerAdapter {
    SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
    @Override
    public Object instantiateItem(View container, int position) {
        Context context = container.getContext();

```

Eclipse tells me method getDefaultSharedPreferences is not defined for type PageAdapter.

Is there any way to do it somehow?