Android Application Development - Answer Guide
Unit 1: Android and its Tools
Q: List features of Android Operating System.
A: - Open-source
- Multi-tasking
- Rich UI
- Large developer community
- Support for multiple screen sizes
Q: List all versions of Android OS.
A: Cupcake (1.5), Donut (1.6), Éclair (2.0-2.1), Froyo (2.2), Gingerbread (2.3), Honeycomb (3.0-3.2),
Ice Cream Sandwich (4.0), Jelly Bean (4.1-4.3), KitKat (4.4), Lollipop (5.0-5.1), Marshmallow (6.0),
Nougat (7.0-7.1), Oreo (8.0-8.1), Pie (9), Android 10, 11, 12, 13, 14
Q: Define OHA and state its goal.
A: OHA (Open Handset Alliance) is led by Google to develop open standards for mobile devices. Its
goal is to improve the Android ecosystem.
Q: List all tools and software required for developing an Android application.
A: - Android Studio
- Java Development Kit (JDK)
- Android SDK
- Gradle
- Emulator
- Debugging tools
Q: Explain the need for Android OS.
A: - Provides a user-friendly interface
- Supports multitasking
- Large app ecosystem
- Open-source flexibility
Q: Describe Android Ecosystem.
A: Android Ecosystem consists of the Android OS, applications, Play Store, development tools, and
third-party integrations.
Q: Describe the features of the Android Operating System.
A: - Multi-tasking support
- Open-source framework
- Large developer community
- High security and customization
Q: Describe the Android System Architecture with a diagram.
A: Android System Architecture consists of:
- **Linux Kernel** (Hardware abstraction, Drivers)
- **Libraries** (Media, Graphics, SQLite, WebKit)
- **Android Runtime** (DVM, Core Libraries)
- **Application Framework** (Activity Manager, Content Providers, Notification Manager)
- **Applications** (System and User Apps)
Unit 2: Installation and Configuration of Android
Q: What is the role of Android Virtual Device (AVD)?
A: AVD allows developers to test Android apps on a virtual device before deploying them on real
hardware.
Q: What is an Android Emulator?
A: An Android Emulator is software that mimics an Android device for app testing.
Q: What is the difference between Android SDK and Platform Tools?
A: - SDK: A collection of tools for development.
- Platform Tools: Includes debugging and management tools like ADB and Fastboot.
Q: List Android SDK Tools.
A: - ADB (Android Debug Bridge)
- Fastboot
- Emulator
- SDK Manager
- Hierarchy Viewer
- Lint
Q: Describe the process to create an Android Emulator with AVD Manager.
A: 1. Open Android Studio
2. Open AVD Manager
3. Click 'Create Virtual Device'
4. Select device type
5. Choose system image
6. Configure properties
7. Click 'Finish' and start the emulator
Q: Differentiate between JVM and DVM.
A: - JVM runs Java applications on computers.
- DVM (Dalvik Virtual Machine) is optimized for Android and executes DEX files.
Q: Explain ADT Plugins in detail.
A: ADT (Android Development Tools) was a plugin for Eclipse IDE that provided tools for Android
development, such as UI design, debugging, and compiling.
Q: Explain Android SDK Tools.
A: - SDK Manager: Manages SDK versions
- ADB: Debugging tool
- Emulator: Runs Android apps virtually
- Fastboot: Allows flashing firmware
Q: Define Dalvik Virtual Machine with a diagram.
A: DVM executes Android applications efficiently using low memory and optimized performance. It
converts Java bytecode into Dalvik bytecode (DEX format).
Q: Steps to install and configure Android Studio.
A: 1. Download Android Studio from the official website
2. Install JDK if not installed
3. Run the Android Studio installer
4. Configure SDK path, Emulator, and project settings
5. Start a new project
Unit 3: Android and its Layouts
Q: List different types of views and ViewGroups.
A: - Views: TextView, ImageView, Button, EditText
- ViewGroups: LinearLayout, RelativeLayout, ConstraintLayout, TableLayout
Q: Write steps to develop an Android application.
A: 1. Install Android Studio
2. Create a new project
3. Design UI using XML
4. Write Java/Kotlin code
5. Test the app
6. Debug and publish
Q: List any four attributes of CheckBox.
A: - android:text
- android:checked
- android:textColor
- android:onClick
Q: List four attributes of ViewGroup.
A: - android:layout_width
- android:layout_height
- android:gravity
- android:orientation
Q: Draw the hierarchical directory structure of an Android application.
A: - manifest/
- java/
- res/
- assets/
- Gradle files
Q: Write the directory path where images are stored while developing an Android application.
A: - res/drawable/
Q: Explain four Components of Android Application.
A: - Activities: Handles UI interactions
- Services: Runs background tasks
- Broadcast Receivers: Listens for system-wide events
- Content Providers: Shares data between apps
Q: Explain Relative Layout with all its attributes.
A: - Arranges views relative to each other
- android:layout_above
- android:layout_below
- android:layout_alignParentRight
Q: Explain GridView and ScrollView with an example.
A: - GridView: Displays items in a grid
- ScrollView: Allows vertical scrolling
Q: Develop an Android application using a Radio Button.
A: Use <RadioButton> inside <RadioGroup> and capture selection in Java/Kotlin code.
Q: Explain the Android directory structure.
A: - manifest/: Contains AndroidManifest.xml
- java/: App logic
- res/: UI resources
- Gradle/: Build configuration
Q: Write an XML file to create a login page using TableLayout.
A: <TableLayout>
<TableRow>
<TextView android:text='Username:' />
<EditText android:hint='Enter Username' />
</TableRow>
<TableRow>
<TextView android:text='Password:' />
<EditText android:hint='Enter Password' android:inputType='textPassword' />
</TableRow>
<TableRow>
<Button android:text='Login' />
</TableRow>
</TableLayout>