FragmentManager manager = getFragmentManager();
It is giving the error
required : android:support.v4.FragmentManager
foun
add these two import
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
for example
FragmentA fragmentA = new FragmentA();
FragmentManager fragmentManager =getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.add(R.id.id_parent_fragment,fragmentA);
fragmentTransaction.commit();
consider FragementA is the fragment that you want to insert in the activity which in this case is the container in the activity id_parent_fragment