FragmentManager manager = getFragmentManager();
It is giving the error
required : android:support.v4.FragmentManager foun
change the import of Fragment Activity below
import android.support.app.FragmentActivity;
to
import android.support.v4.app.FragmentActivity;