I am creating an app that will have a main activity and some fragments interleaved, in that case I am trying to launch a fragment_main but I can not frazer this Java code flipping code Koltin:
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
UsuarioCadFragment fragment = new UsuarioCadFragment();
fragmentTransaction.add(R.id.fragment_container, fragment);
fragmentTransaction.commit();
This code should be called soon in the creation of the main activity, but in kotlin.