I have searched around about PreferenceActivity having to override the isValidFragment
method, and I understand the concept, but when I override that method I get an error that says: Method does not override method of its super class.
Why is it not finding that method in the superclass?
For now I just tried to return true (I know that's not the way it's supposed to be done, but I can fix that later when I get it to work)
public class SettingsMenu extends PreferenceActivity
{
...
@Override
protected boolean isValidFragment (String fragmentName)
{
return true;
}
}
When I do it this way, the @Override gets a red underline, and the error referenced above it what I see when I hover over the underline.
For the time being I have lowered the targetapi
to 18 so that the method is not required, but I know that's not a good fix due to security issues.