Android
Activity
Program
S A N T H O SH KU M A R R
II M C A
2 3 M C A3 8
What is an Android Activity?
An Android activity is a single screen with a user
interface.
It represents one screen of the Android application.
Example: Login screen, Home screen, etc.
Components of an Android Activity
OnCreate() method: Called when the activity is first
created.
XML layout file: Defines the UI components.
Manifest file: Registers the activity with the Android
system.
Program Code Overview
Output Screen
How the App Works
The app launches the MainActivity.
In onCreate(), the TextView is initialized and
displayed.
The message "Hello, World!" is shown on the
screen.
Future Enhancements
Button interactions.
Multiple screens (Activities).
Style the interface with XML layouts.