Solved

If We Call the GetActivity Method Inside a User-Defined Fragment

Question 20

True/False

If we call the getActivity method inside a user-defined Fragment class and assign the return value to a user-defined Activity class, the Fragment class is not usable with a different user-defined Activity class. To make it reusable with a different user-defined Activity class, we use an interface inside the user-defined Fragment class and have our user-defined Activity class implement that interface.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents