apparently there is a X under import androidx.fragment.app.FragmentActivity, when I try to create a fragmentActivity. However, when I look for a sample project, it imports android.support.v4.app.fragment instead. May I know whats the difference, and why do I have this following error when I try to run my own project?:
java.lang.ClassCastException: com.fragmenttest.helloapp.ui.collection.ViewPagerIndicatorActivity cannot be cast to androidx.fragment.app.Fragment.