What is an Activity ?
What is an Activity ?
In Android development, an Activity is a fundamental component that represents a single screen or user interface. It is responsible for managing user interactions and displaying content to the user. An Activity typically contains a layout, which defines the visual structure of the screen, and includes various UI elements such as buttons, text fields, and views.
Here are some key points about Activities in Android:
Each Activity has a well-defined lifecycle that is managed by the Android system. The lifecycle consists of several states, such as created, started, resumed, paused, and stopped. Activities transition between these states based on user interactions and system events. Understanding the Activity lifecycle is crucial for properly managing resources and handling user input.
Activities communicate with each other using Intents. An Intent is an object that represents an action to be performed, such as launching another Activity or performing a specific...
entry
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào