mlm mlm - 1 year ago 127
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download