Android Application Development (AND-401) — Question 17

A developer can create a custom view by extending class Activity.

Answer options

Correct answer: B

Explanation

The correct answer is B because a developer cannot create a custom view by extending the Activity class, as Activity is designed for managing the user interface and application lifecycle, not for creating views. Custom views should be created by extending classes such as View or its subclasses.