I was working on fragments and came across two things Activity and FragmentActivity which are used several times. I want to know that is there any difference between these two, because when I changed Activity with FragmentActivity, it had no effect on the app.
I was working on fragments and came across two things Activity and FragmentActivity which
Share
A
FragmentActivityis a subclass ofActivitythat was built for the Android Support Package.The
FragmentActivityclass adds a couple new methods to ensure compatibility with older versions of Android, but other than that, there really isn’t much of a difference between the two. Just make sure you change all calls togetLoaderManager()andgetFragmentManager()togetSupportLoaderManager()andgetSupportFragmentManager()respectively.