mlm mlm - 6 months ago 49
Android Question

What does extend?

The webpage with the following address states that the class FragmentActivity extends the class Activity:

However, when I bring up the documentation for the class within Android Studio, it states that FragmentActivity extends

What is the reason for the discrepancy and which is correct?


This goes up to BaseFragmentActivityDonut. These base fragments are just an implementation detail of FragmentActivity and should not concern you at all. In the library I use, FragmentActivity directly extends BaseFragmentActivityJB. In the future there might be something like BaseFragmentActivityM or some compatibility layer for even newer platforms.

For your programming just assume it extends Activity only, like the documentation states.