0% found this document useful (0 votes)
57 views3 pages

Experiment No 5 MC

Na
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)
57 views3 pages

Experiment No 5 MC

Na
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
You are on page 1/ 3

EXPERIMENT NO: 05

Aim: Implement an android application which will display HELLO WORLD and
deploy it on real device.
Theory:
Android Development Environment:
Java or Kotlin: Android apps are primarily developed using Java or Kotlin programming
languages.
Android Studio: Android Studio is the official integrated development environment (IDE) for
Android app development. It provides tools for coding, debugging, and testing Android
applications.
Android SDK: The Android Software Development Kit (SDK) provides libraries, tools, and
APIs necessary for Android app development.

Components of an Android Application:


Activities: An Activity represents a single screen with a user interface. It's the entry point for
interacting with the user.
Layouts: Layouts are XML files that define the structure and appearance of the user interface
components within an Activity.
Views: Views are the UI components such as buttons, text fields, and images that are used to
interact with the user.
Manifest File: The AndroidManifest.xml file describes essential information about the app to
the Android system, including the app's name, icon, permissions, and the components it
contains.

Creating an Android Application:


Project Setup: Start by creating a new Android project in Android Studio. Define the project
name, package name, and select the minimum SDK version.
Activity and Layout Creation: Create an activity class (e.g., MainActivity.java) and its
corresponding layout file (e.g., activity_main.xml) where you define the user interface.
UI Design: Design the UI by adding Views (e.g., Text View, Button) to the layout file using
XML.
Coding Logic: Write the Java or Kotlin code in the Activity class to handle user interactions
and implement the application's logic.

Deploying an Android Application:


Setting Up a Device: Connect a real Android device to your computer via USB and enable
USB debugging mode on the device.
Configuring Android Studio: Ensure that Android Studio recognizes your device by checking
the device list in the Android Device Monitor.
Build and Run: Click on the "Run" button in Android Studio to build the application and
deploy it to the connected device.
Installation: The APK (Android Package) file is installed on the device, and the application is
launched for testing.

1|Page
Debugging and Testing:
Logcat: Android Studio's Logcat window displays logs generated by the Android system and
your application, which helps in debugging.
Emulator: Android Studio provides an emulator to test applications on virtual devices with
different screen sizes and Android versions.
Real Device Testing: Testing on a real device is essential to ensure that the application
behaves as expected in a real-world environment.
Java File:

2|Page
XML File:

Output:

Conclusion: The experiment involved creating a basic Android


application that displays "HELLO WORLD" and deploying it on a
real device. This process familiarizes developers with Android
Studio, layout design, coding logic, and device testing, serving as
a foundational exercise in Android app development.

3|Page

You might also like