I had a class that extended android.support.v4.app.FragmentActivity. I wanted to override onRetainCustomNonConfigurationInstance, and I ran into the following error, indicating FragmentActivity didn't have that method:
The method onRetainCustomNonConfigurationInstance() of type ... must override or implement a supertype method
here's how to fix it:
open the android SDK manager
update the compatibility package
copy the updated compatibility package to the /libs folder of your project. see here for where to find the compatibility package: http://developer.android.com/sdk/compatibility-library.html#SettingUp
that last part's what got me; I assumed updating the compatibility package would update it in my project :P
0 comments:
Post a Comment