0% found this document useful (0 votes)
9 views4 pages

Android Pract1 Writeup

The document provides an introduction to Android, detailing its open-source nature, key features, and the Android Studio IDE for app development. It covers application fundamentals, including components like Activities, Services, Content Providers, and Broadcast Receivers, as well as UI design and creating an Android Virtual Device (AVD). Additionally, it explains enabling USB debugging for testing and includes a simple 'Hello World' program example.

Uploaded by

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

Android Pract1 Writeup

The document provides an introduction to Android, detailing its open-source nature, key features, and the Android Studio IDE for app development. It covers application fundamentals, including components like Activities, Services, Content Providers, and Broadcast Receivers, as well as UI design and creating an Android Virtual Device (AVD). Additionally, it explains enabling USB debugging for testing and includes a simple 'Hello World' program example.

Uploaded by

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

1.

Introduction to Android
 Android is an open-source operating system developed by Google, primarily for
mobile devices like smartphones and tablets.
 It is based on Linux kernel and designed for touchscreens, supporting applications
written in Java, Kotlin, and C++.
 Key Features:
o Open-source and customizable

o Multi-tasking support

o Rich user interface with touch gestures

o Integrated with Google services (Maps, Play Store, Cloud)

o Large developer community

2. Introduction to Android Studio


 Android Studio is the official IDE (Integrated Development Environment) for
Android development.
 Built on IntelliJ IDEA, it provides tools for designing, coding, testing, and debugging
Android apps.
Key Features:
 Code editor with IntelliSense
 Graphical layout editor
 Android Virtual Device (AVD) manager
 Debugging and profiling tools
 Gradle build system

3. Application Fundamentals
Android applications consist of multiple components, each serving a specific purpose. The
main components are:
a) Creating a Project
 Open Android Studio → File → New Project
 Select a template (Empty Activity is common for beginners)
 Enter project name, package name, language (Java/Kotlin), and minimum SDK
 Click Finish to create the project
b) Android Components
1. Activity
o Represents a single screen in an app.

o Each activity has a UI.

o Example: [Link]

2. Service
o Runs in the background without a UI.

o Example: Music player, downloading files in the background.

3. Content Provider
o Manages shared app data, like contacts or media.

o Other apps can query or modify data using content providers.

4. Broadcast Receiver
o Listens for system-wide events, like battery low, incoming SMS, or device
boot.
o Example: Trigger an app notification when Wi-Fi connectivity changes.

4. Interface Overview
 Android Studio provides a visual layout editor for designing UIs.
 Key UI components:
o TextView: Display text

o EditText: Input text

o Button: Clickable buttons

o ImageView: Display images

o RecyclerView/ListView: Display lists

5. Creating an Android Virtual Device (AVD)


 Used to emulate Android devices on your computer.
 Steps:
1. Open Android Studio → Tools → AVD Manager
2. Click Create Virtual Device
3. Select device model (e.g., Pixel 5)
4. Select system image (Android version)
5. Configure and launch AVD

6. USB Debugging Mode


 Enables your physical Android device to communicate with Android Studio for
testing.
 Steps:
1. Go to Settings → About Phone → Tap “Build Number” 7 times → enables
Developer Mode
2. Go to Developer Options → USB Debugging → Enable
3. Connect the phone via USB to test your apps

7. Simple Hello World Program


Step 1: Create a new project with Empty Activity.
Step 2: Open activity_main.xml and add:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello, World!"
android:layout_gravity="center"
android:textSize="24sp"/>
Step 3: Open [Link] and check:
package [Link];
import [Link];
import [Link];
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
[Link](savedInstanceState);
setContentView([Link].activity_main);
}
}
Step 4: Run the app on AVD or USB device → You’ll see Hello, World! displayed.

After completion add the screenshot to the left side of your journal

You might also like