0

I have the problem, that SharedPreferences with FragmentManager won't work in Android below 3.0. I always get this error:

java.lang.NoSuchMethodError: mypackage.Settings.getFragmentManager

How can I provide preferences for both: below and above 3.0?

I searched alot and found different solutions but nothing worked for me :/ Can anyone give me a good step by sep explination?

4

1 回答 1

2

在 3.0 以下,您应该使用支持库并调用 getSupportFragmentManager()

于 2013-06-09T09:46:45.463 回答