Professional Documents
Culture Documents
MAD IMP Questions Final
MAD IMP Questions Final
Ans:
i. Android:
a. Android is open-source operating system.
b. It’s a handset based operating system. Such as mobile, tablet
etc.
c. It’s a modified version of Linux Kernel and other open
source software.
d. It is designed for touchscreen devices.
ii. OHA :
a. It’s a open handset alliance.
b. It is created for developing standards of open mobile
devices.
c. It is developed in 5 November 2007 by Google with 34
other companies.
d. It has now approx. 80 members including google,
Microsoft, intel, dell,HTC.
Ans:
i. Intelij Idea
ii. Eclipse
iii. Android studio.
Ans:
i. Activity:
a. Its an UI of android app.
b. In activity file we define user interface for our app.
c. We can implement all UI components in Activity file
d. Activity is media between actual data storage and user.
e. One activity implements the one page of the app.
Ans:
i. Button
ii. Textview
iii. Edittext
iv. Radio button
v. Check box
vi. Radio group
vii. Toggle button
5. Features of android.
Ans:
Ans:
7. Write directory path where our all images store while developing
android program
Ans:
i. Res/Drawable
Ans:
Ans:
Action:priority = “integer”>
</intent-filter>
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
i. String file:
a. The string file contains the strings or the text.
b. This text is displayed on different UI component such as
Textview, button, Radio button etc.
c. We can place the source of string inside component’s text.
d. Then we can mention that source in string file with string
we want to display.
ii. Layout file:
a. The layout file contains the complete UI of our activity.
b. Using this layout file we can create numbers of activity of
our application.
c. It contains declaration of all UI components and layouts
which displayed on activity.
Ans:
Ans:
i. Android.telephony.SmsManager
Ans:
i. Android market:
a. It’s a fastest growing market
b. We can get any type of app in android.
c. Using this apps we can improve functionality of our mobile.
Ans:
Ans:
Ans:
i. Android:layout_below
ii. Android:layout_alignRight
iii. Android:layout_alignBottom
iv. Android:layout_alignLeft
v. Android:layout_above
vi. Android:layout_alignParentEnd
vii. Android:layout_alignParentBottom
viii. Android:layout_alignParentLeft
ix. Android:layout_alignParentRight
x. Android:layout_alignParentStart
Ans:
App:
Manifest:
androidManifest.xml
java
MainActivity.java
Res:
Drawable:
Layout:
Activity_main.xml
Minmap:
Values:
String.xml
Colors.xml
Styles.xml
Ans:
Ans:
Ans:
Ans:
i. Views:
a. List view
b. Grid view
c. Image view
d. Scrollview
ii. Scroll View:
a. It’s a view which can only contain one direct child.
b. This use to make child scrollable.
c. It has two types:
i. Vertical scroll view.
ii. Horizontal scroll view.
Ans:
i. GetLatitude():
ii. getLongitude():
iii. getAccuracy():
iv. getAltitude():
v. getSpeed():
vi. DistanceTo(Location destt):
Ans:
Ans:
i. Absolute layout
ii. Relative layout
iii. Table layout
iv. Linear layout
v. Frame layout.
Ans:
i. Match Parent:
a. It uses to set component with respect to its parent
b. Using it we can set height or width of component as respect
to its parent.
c. It expands the size of component.
ii. Wrap Content:
a. In it we set component with respect to its content.
b. Using it we can set height or width of component with
respect to its content.
c. It shrinks the size of component.
Ans:
Ans:
i. Motion sensors:
a. Accelerometer
b. Gravity sensor.
ii. Environmental Sensor:
a. Barometer.
b. Photometer
c. Thermometer.
iii. Position Sensor:
a. Orientation sensor
b. magnetometer
Ans:
i. Draw Architecture:
ii. Explain:
a. It’s a software stack of components to support mobile
device.
b. Components:
i. Applications:
1. Top layer of android
2. Contains User interface of app.
3. This layer runs android runtime using classes
and services.
ii. Application Framework:
1. It has classes use to create application
2. Manages Application resources and UI
3. Contain services like location, notification,
view system etc.
iii. Android Runtime:
1. Important part of android.
2. It contains android compiler Dalvik Virtual
machine (DVM) and some core libraries.
3. It power ups application using this libraries
v. Linux Kernal:
1. Bottom layer of architecture.
2. It manages all drives during runtime
3. It provides abstraction layer between this
architecture and hardware
Ans:
App:
Manifest:
androidManifest.xml
java
MainActivity.java
Res:
Drawable:
Layout:
Activity_main.xml
Values:
String.xml
Colors.xml
Styles.xml
Ans:
Ans:
Ans:
Executable file for the device is .jar Executable file for the devices is .apk
file file
Ans:
i. Frame Layout:
a. It’s a placeholder on screen that use to display single view.
b. It is used to block out an area on the screen to display single
view.
c. It is designed to hold single child
d. If we want to put multiple child in it then we need to use
‘gravity’ attribute for managing them
Ans:
i. Activities:
a. It’s a single screen with user interface.
b. It use to perform some kind of operation on screen.
c. If application has many activities then one of them declared
as MainActivity.
ii. Services:
a. It’s a component which runs in background.
b. It’s a long running process.
c. It always executes on main thread of its process.
Ans:
i. Intent:
a. It’s a messaging request object in android.
b. It is use to communicate with another application
components.
c. We can send data or request some operation using this
intents.
d. The intent handler are use to handle intent request from
another app
e. There are 2 types of intent in android:
i. Implicit Intent: (didn’t have target component)
ii. Explicit Intent: (already has target component)
ii. Fragment:
a. It’s a modular section of activity.
b. It is use to divide our Activity in particular sections.
c. We can create numbers of fragment in one activity
d. We can use fragments of one activity into another one.
e. We can implement it with out any UI
f. It has its own life cycle.
g. We add fragment using <fragment> attribute
Ans:
iii. Login with your Gmail account that you want to use for
publishing app.
vii. Now fill store listing details of your app which include Title,
Short Description, and Full Description.
viii. After this we need to add app’s screen shot to it. Minimum 2,
maximum 8
ix. After this we need to add high definition icon or logo of app.
x. Now scroll down and feel other remaining details includes
type, category, website, email and phone no.
xi. Then check privacy policy then click on save draft to save
our work so for.
xiv. After this we see browse files click on it and upload your
signed APK.
xviii. First click on save questionnaire for save and then click on
calculate rating.
xxi. Now scroll down and check all * mandatory fields and then
click on save draft.
xxii. Now click on ready on publish with save draft and click on
manage release.
Ans:
i. Button:
a. It’s a clickable UI component.
b. We can use it for doing some event handling.
c. Example:
Android:layout_height = “wrap_content”
Android:layout_width = “wrap_content”
Android:text = “click”
ii. TextView:
a. It’s a read only text editor
b. We use to display labels on activity.
c. We can also show some results using it.
d. Example:
Android:layout_height = “wrap_content”
Android:layout_width = “wrap_content”
iii. Edittext:
a. It’s a editable text editor.
b. We use it to get input from user.
c. It has different input options such as number, text, date
etc.
d. Example:
Android:layout_height = “wrap_content”
Android:layout_width = “wrap_content”
Android:ems = “10”
Ans:
Ans:
i. makeText():
a. this method use to set text to toast.
b. This method also use to set timing of toast.
c. Syntax:
i. Toast.makeText(context, msg, toast.length)
ii. Show():
a. This method is use to show the toast.
b. This method didn’t accept any parameter
c. It didn’t return any value.
d. Syntax: toast.show()
iii. setDuration():
a. this method use to set timing of toast.
Ans:
i. Radio Button:
1. This is Android UI component
2. It is a button which has On/ Off or checked/
unchecked states.
3. We can only select one radio button from
collection.
4. Attributes:
a. Android:checked = if true then radio
button checked by default.
b. Android:id = unique name of radio
button
5. Example:
Ans:
i. Implicit Intent:
a. It specifies an action to be performed, and may be data
provided with it.
b. It doesn’t specify the target component or any class on which
this action will perform.
c. Android runtime matches the given intent request with present
intent handler.
▪ Example: While filling any form there is need to
upload some document then after clicking on it our
file explorer open automatically.
Ans:
i. Diagram:
ii. Explain:
a. Activity States and App Visibility:
i. Created (not visible yet)
ii. Started (visible)
iii. Resume (visible)
iv. Paused (partially invisible)
v. Stopped (hidden)
vi. Destroyed (gone from memory)
1. onCreate() – Activity Created.
a. Called when activity first created.
b. Does all static setup: create views, bind
data to list…
c. Only called once during an activity’s
lifetime
Ans:
Content Provider:
• A fragment has its own layout and its own behaviour with its
own life cycle callbacks.
• You can add or remove fragments in an activity while the
activity is running.
• You can combine multiple fragments in a single activity to
build a multi-pane UI.
• A fragment can be used in multiple activities.
• Fragment life cycle is closely related to the life cycle of its
host activity which means when the activity is paused, all the
fragments available in the activity will also be stopped.
• A fragment can implement a behaviour that has no user
interface component.
Ans:
Ans:
Ans:
Ans:
Ans:
c. Position Sensors:
i. Sense physical position device.
ii. Example: orientation sensor,
magnetome-ters.
iii. Android has sensor framework to access all available sen-sors.
i. this class used for zooming and return callback to register for
events.
ii. It has 2 buttons ZoomIn and ZoomOut which are used to control
the zooming functionality.
iii. Zoom control XML code.
<ZoomControls
Android:id = “@+id/zoomid”
Android:layout_width= “wrap_content”
Android:layout_height = “wrap_content”/>
Ans:
Ans:
i. Android ecosystem means the relationship between Users,
Developers, and Hardware equipments.
ii. Their relationship, dependence is known as android ecosystem
iii. The main block of android ecosystem is:
a. Android User:
i. Android user have more space for customizability.
ii. Android users are smarter than another users as they
perceived greater level of support
iii. Android user prefer to save cost and love the openness
of platform
b. Developer:
i. This are professional software developer.
ii. Following role played by developer:
1. Design and build advance android app
c. Equipment Maker:
i. Android equipment present in huge number in market.
ii. Smartwatches: this watches has android os in it. They
connected to our smart phone.
iii. Smart TV: its just like a small computer on which we
can stream content locally and online.
iv. Smart Speaker: its just like google Alexa.
Ans:
i. Diagram:
Ans:
List View Grid View
In it we can see content in In in we can see content in the rows
list and column
In it we not need to define Here we need to define column
column numbers numbers
Here we only need to define Here we need to define columns,
divider their width and specings.
Example: contact list Example: gallery.
Code of listview Code of grid view
Ans:
i. Frame Layout:
a. It’s a placeholder on screen that use to display single view.
b. It is used to block out an area on the screen to display single
view.
c. It is designed to hold single child
d. If we want to put multiple child in it then we need to use
‘gravity’ attribute for managing them
e. Frame Layout Code (xml file)
Ans:
I. Preparing your app for release:
a. It has following tasks:
i. Configuring your application for release.
ii. Building and signing a release version of your app
iii. Testing the release version of your application
iv. Preparing remote servers and services that your app
needed.
b. We also need to do some other task for preparation process
such as:
i. Getting private key for signing our application.
ii. Need to create icon for application
iii. We may need to prepare End User License Agreement
(EULA) to protect user, organization.
c. After all of this we need to prepare signing .apk file of our
release.
II. Releasing Your App to user.
a. You can release your application in several
b. Generally we release our app through application market
place such as Google Play.
c. But we can also release on our own website.
d. Releasing on google play has following steps:
i. Preparing promotional materials.
ii. Configuring options and uploading assets