0% found this document useful (0 votes)
14 views7 pages

Android Activity Basics and Code Guide

Uploaded by

ravoci3643
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views7 pages

Android Activity Basics and Code Guide

Uploaded by

ravoci3643
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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.

You might also like