0% found this document useful (0 votes)
25 views10 pages

Mad 2 Marks Questions

The document provides a comprehensive overview of mobile application development, specifically focusing on the Android ecosystem, tools, and components involved in creating Android applications. It covers various topics including the role of emulators, permissions, UI design elements, services, and APIs like Google Maps, along with definitions and attributes of different Android components. Additionally, it discusses the significance of content providers, fragments, and the Android Virtual Machine, along with methods for obtaining location data and sending SMS messages.

Uploaded by

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

Mad 2 Marks Questions

The document provides a comprehensive overview of mobile application development, specifically focusing on the Android ecosystem, tools, and components involved in creating Android applications. It covers various topics including the role of emulators, permissions, UI design elements, services, and APIs like Google Maps, along with definitions and attributes of different Android components. Additionally, it discusses the significance of content providers, fragments, and the Android Virtual Machine, along with methods for obtaining location data and sending SMS messages.

Uploaded by

Ganesh Ghadshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Mobile Application Development(22617) Prepared by:Prof.F.R.

Bodale

2 MARKS QUESTIONS
1) Explain the android ecosystem.**
Android ecosystem refers to the interdependence between the demand and supply of
users, equipment makers, and software developers.
One cannot exist without the other.

Google develops android


Users buy devices and applications
Original Equipment makers sell devices, sometimes bundled with applications
Developers buy devices, then make and sell applications
Freelance Android Developer developers have the skills to contribute to the
ecosystem for android development , they are who creates their own applications and
published them on googles play store.

2) Define Emulator. Describe role of Emulator **


An android emulator is used for executing, debugging, and testing android
applications. The emulator helps the developer to run a trial product virtually
without an actual hardware device. An emulator is similar to a physical hardware
mobile device including all the features that an actual mobile contains except that it
cannot place an actual phone call.
The emulator comes with predefined configurations for various Android phones,
tablets, Wear OS, and Android TV devices. Emulator represents a specific Android
device that can be used as a target platform to run and test your android application
on your PC.
3) Name two classes used to play audio and video in Android.**
1) MediaPlayer
2) MediaController
3) AudioManager
4) List any four folders from directory structure of Android project and elaborate in
one line.**
1)app: The App folder contains three subfolders (manifests, java and res) that make up
our application.
2)Manifest: This is where we would put our manifest files. Most Android apps have
single manifest file. But an app may have several manifest files due to application
versioning, or for supporting specific hardware.
3)Java: This is the folder in our project where we will be storing all of the source code
files written in Java programming language.
4)res: It contains folders that help us to separate and sort the resources of our
application.
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

5)drawable: The drawable folder contains graphics that can be drawn to the screen.
6)layout: The layout folder contains XML files used for your layouts.
7)mipmap : The mipmap folder contains the launcher icon files for the app.
8)values: The values folder contains XML files that contain simple values, such as
strings, integers, and colors.
5) List types of permissions in android.
a)Normal permissions are typically granted automatically during installation and
include low-risk items like internet access.
b)Runtime permissions, also known as dangerous permissions, require user consent
at runtime and involve access to sensitive data or actions.
c)Special permissions have stricter requirements and might be granted to specific
apps or system components.
d)Signature Permissions: Apps signed with the same key can share signature-level
permissions.
6) List attributes of radio button. (Any four)
android:id
android:text
android:onClick
android:checked
android:visibility
android:minWidth
android:minHeight

7) Describe the process of getting the map API key.

a)Open google developer console and sign in with gmail account:

https://console.developers.google.com/project

b)Now create new project.

c)Now click on APIs and Services and open Dashboard from it.

d)In this open Enabled APIs and Services.

e)Now Open Google Map Android API.

f)Now go to Credentials.

g)Click on Create credentials and choose API key.

h)Now API key will be generated.Copy it and save it somewhere as we will need
it when implementing Google Map in Android project.

8) List all tools and softwares required for developing an android application.**

Essential Tools and Software:


Android Studio:
The official IDE for building Android apps, offering features like a visual layout editor,
code editor, built-in emulator, and integration with Google Cloud Platform.
Java Development Kit (JDK):
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

Necessary for compiling and running Java code, which is the primary language used
for Android development.
Android Software Development Kit (SDK):
Provides the necessary tools, APIs, and libraries for developing Android applications.
Gradle Build System:
An automated build tool used by Android Studio to manage dependencies and build
the app.
Android Virtual Device (AVD) Manager:
Allows you to create and manage virtual devices (emulators) for testing your app.
Android Debug Bridge (ADB):
A command-line tool for debugging and running applications on connected Android
devices.
Version Control System (VCS):
Git is a common choice for managing code changes, collaborating with others, and
tracking the history of your project.

9) List any four attributes of layout.

android:id android:layout_marginLeft
android:layout_width android:layout_marginRight
android:layout_height android:layout_marginTop
android:layout_gravity android:layout_marginBottom

10) Define Geocoding and Reverse Geocoding.

a)Geocoding is the process of converting an address or place name into geographic


coordinates, like latitude and longitude, for mapping. Used for mapping, routing, and other
applications that require precise location data.

b)Reverse geocoding is the opposite, converting those geographic coordinates back into a
human-readable address or place nameUseful in navigation systems, delivery services, and
other applications where knowing the address of a location is needed based on GPS data.

11) State intent. List types of intent.**

An Intent is a messaging object you can use to request an action from another app
component.
Intents are used for facilitating communication between components like Activities,
Services and Broadcast Receivers.

There are two types of intents in android


a)Implicit Intent
Implicit Intent doesn’t specify the component. In such a case, intent provides information
on available components provided by the system that is to be invoked.
Syntax:
Intent intent=new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://www.geeksforgeeks.org/"));
startActivity(intent);
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

b)Explicit Intent
Explicit Intent specifies the component. In such a case, intent provides the external class
to be invoked.
Syntax:
Intent i = new Intent(getApplicationContext(), ActivityTwo.class);
startActivity(i);

12) Write difference between toggle button and radio button.

a) Radio button allows users to select one option from a group of mutually exclusive
choices

b) Radio buttons are typically used when presenting a list of options where only one can be
selected , like choosing a preference or a setting.

a) Toggle button allows users to toggle between two states (usually "on" and "off")

b) Toggle buttons, on the other hand, are often used for settings that can be enabled or
disabled, like turning Wi-Fi on or off.

13) Define Broadcast receiver.

Broadcast Receiver is a component that allows an app to listen for and respond to system-
wide or app-specific events, also known as broadcasts. These broadcasts are essentially
"intents" that indicate an event has occurred, such as the device booting, battery level
changes, or a new SMS message.

There are mainly two types of Broadcast Receivers:


 Static Broadcast Receivers: These types of Receivers are declared in the manifest
file and works even if the app is closed.
 Dynamic Broadcast Receivers: These types of receivers work only if the app is
active or minimized.

14) List any four features of android operating system.**

1)Storage 8)Voice Based Features


2)Multitasking 9)Multitouch
3)Web Browser 10)External Storage
4)Open Source 11)Video Calling
5)Accessibility 12)Handset Layout
6)Media Support 13)Google cloud Messaging
7)Streaming Media Support 14)WiFi Direct

15) List various components of android UI design.**


Elements of UI.

OR
Components of UI
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

16) List any two attributes of Toggle Button.


android:textOn
android:textOff
android:disabledAlpha
android:checked

17) Define service in android operating system.

Service is an application component that performs long-running operations in the


background, without a user interface.
It's designed to handle tasks like downloading data, playing music, or performing other
background processes.
Services can run even when the user is not actively interacting with the app.

18) Explain two methods of Google Map.

a)addMarker()

You can place a maker with some text over it displaying your location on the map. It can be
done by via addMarker() method. Its syntax is given below

final LatLng TutorialsPoint = new LatLng(21 , 57); Marker TP =


googleMap.addMarker(new MarkerOptions()
.position(TutorialsPoint).title("TutorialsPoint"));

b)setMapType

You can also change the type of the MAP. There are four different types of map and each
give a different view of the map. These types are Normal,Hybrid,Satellite and terrain. You
can use them as below

googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
googleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
googleMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);

19) Define OHA and state goal of OHA.

"OHA" refers to the Open Handset Alliance, a consortium of technology and mobile
companies that developed Android.

The Open Handset Alliance's goal is to accelerate innovation in mobile and provide
consumers with a better, less expensive, and richer mobile experience. They developed
Android as the first open, free, and complete mobile platform.
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

20) Define Android Virtual Devices (AVD).

An Android Virtual Device (AVD) is a configuration that defines the characteristics of a


simulated Android device, like a phone, tablet, Wear OS watch, or Android TV, within the
Android Emulator.
It allows developers to test their apps on various device types and configurations without
needing physical devices.
Essentially, an AVD is a software-based emulator that mimics the behavior of a specific
Android device.

21) State how the APK files are built?

1)The javac compiler compiles the java source file into the class file.
2)The dx tool takes all the class files of your application and generates a single .dex file
which is a platform specific tool.
3)Then Android Assets Packaging Tool (aapt) handles the packaging process and finally
creates an executable file with extension .apk.
4)An APK file contains all of a program's code (such as .dex files), resources, assets,
certificates, and manifest file.

22) Name any four methods to get location data in android.


•float distanceTo(Location dest) •boolean hasBearing()
•float getAccuracy() •boolean hasBearing()
•float getBearing()•double getAltitude() •boolean hasSpeed()
•double getLatitude() •void reset()
•float getSpeed() •void setAccuracy(float accuracy)
•boolean hasAccuracy() •void setAltitude(double altitude)
•boolean hasAltitude()
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

23) Explain significance of content provider.

Content Providers are used to share data between two applications. This can be
implemented in two ways:
1. When you want to implement the existing content provider in another application.
2. When you want to create a new content provider that can share its data with other
Applications

24) List various layouts used in android UI design.

a)Linear Layout
b)Absolute Layout
c)Frame Layout
d)Table Layout
e)Relative Layout

25) Name any four attributes of Edit Text control.


android:id android: textColor
android: gravity android: textSize
android: text android: textStyle
android: hint android: background

26) State the use of fragments in android App development.

Android Fragment is the part of activity, it is also known as sub-activity. There can be
more than one fragment in an activity.
Fragments represent multiple screen inside one activity.

We can create Fragments by extending Fragment class or by inserting a Fragment into


our Activity layout by declaring the Fragment in the activity’s layout file, as a
<fragment> element.

With the help of Fragment’s we can divide the screens in different parts and controls
different parts separately

27) Define SMS service in android application development.

In Android, you can use SmsManager API or devices Built-in SMS application to send
SMS's
Android SMS is stored in PDU (protocol description unit) format
SmsManager class takes care of sending the SMS message.
We just need to get an instance of it and send the SMS message.
We need to add permission to SEND_SMS in the Android manifest file.

SmsManager smsManager = SmsManager.getDefault();


smsManager.sendTextMessage("phoneNo", null, "sms message", null, null);
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

28) Define Dalvik Virtual Machine (DVM).

DVM is designed to run Android applications, providing a secure and isolated


environment for each application. It's a virtual machine that executes Java code.

The Dex compiler helps convert the class file into .dex file, the following image shows
how it flows:

 First of all the .java file converts into .class file with the help of Java compiler.
 Next .class file converts into .dex file using Dec compiler.
 Then finally the packaging process is handled by the Android Assets packaging
(aapt) tools.

29) List different types of sensors used in android.

The android platform supports three broad categories of sensors.


• Motion Sensors
These are used to measure acceleration forces and rotational forces along with three
axes.
• Environmental sensors
These are used to measure the environmental changes such as temperature, humidity
etc.
• Position sensors
These are used to measure the physical position of device.

30) List any four attributes of check box.


android:checked,
android:text,
android:textColor,
android:textSize,
android:background
Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

31) State syntax to display built in zoom control.

a) Built in Zoom control in Google map can be displayed with :


UiSettings.setZoomControlsEnabled(true);

b) In any normal activity, ZoomControl can be displayed as component by following


syntax :
ZoomControl zoomControls = (ZoomControls) findViewById(R.id.simpleZoomControl);
zoomControls.show()

32)Differentiate between JVM and DVM.


Mobile Application Development(22617) Prepared by:Prof.F.R.Bodale

33) Draw diagram of activity life cycle.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy