100% found this document useful (2 votes)
4K views5 pages

Mad Viva Questions

The document lists important questions for an Android virtual device exam. It covers topics like the AVD, emulator, DVM, JVM differences, Android components, intents, permissions, and classes for common tasks like camera, SMS, and media playback.

Uploaded by

90rohan shukla
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
100% found this document useful (2 votes)
4K views5 pages

Mad Viva Questions

The document lists important questions for an Android virtual device exam. It covers topics like the AVD, emulator, DVM, JVM differences, Android components, intents, permissions, and classes for common tasks like camera, SMS, and media playback.

Uploaded by

90rohan shukla
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/ 5

MAD IMPORTANT VIVA QUESTIONS

1. What is AVD in android


AVD Stands for Android Virtual Device it is used to run the android
application virtually on Android studio. It’s a representation of physical
device

2. What is Emulator in android


Emulator is platform to simulate your android application on AVD. It is
used to run and test android application.

3. What is DVM
DVM Stands for Dalvik Virtual Machine, It is used to run Dalvik
bytecode. It’s a stack based virtual machine in which Dex compiler will
convert .class(java) files to .dex(dalvik) file.

4. What is the difference between JVM and DVM


The JVM is a virtual machine to run Java class files and java byte code.
JVM is stack based virtual machine. DVM is register based virtual
machine and it is used to compile dalvik byte code and also for android
packaging

5. Major Attributes of Absolute Layout


android:layout_x (used to measure distance of view element from X axis)
android:layout_y (used to measure distance of view element from Y axis)

6. Major components of Android


 Activity
 Services
 Content providers
 Broadcast Receivers
7. What are Services
Services are programs in android which will be running in the
background. There are two types of services
1) Bound service
2) Unbound service

8. What are Content Providers


Content provider is a component in android which is used to share the
data from one application to another or over a network. It supports
CRUD operations on data which stands for Create, Read, Update and
Delete.

9. What are Broadcast Receivers


Broadcast Receivers simply respond to broadcast messages from other
applications or from the system itself. These are the OS generated
messages or system calls. Example battery low notification

10. What are Intents and its types


Intent is to perform an action. It is mostly used to start activity, send
broadcast receiver, start services and send message between two
activities. It is used to travel from one activity to another
There are two types of Intents in Android
1) Explicit ( Used to travel from one page to other in same application)
2) Implicit (Used to travel from one application to other application)
startActivity() Method is used to start intent
11. Difference between Radio Button and Radio Group

Radio Button works as an independent view and all the radio buttons can
be checked or selected whereas in Radio group only one option can be
selected (used in quiz)

12. Major attributes of Progress bar


android:max
android:visibility
android:progress
Style attribute (used to change progress bar from horizontal to vertical)

13. Major attributes of List View


android:divider=color name
android:dividerHeight=5dp
android:listSelector=color name

14. Major attributes of Grid View


android:numColumns: It defines the number of columns that will be
displayed in the Grid.
android:columnWidth: Specifies the width of each column of the Grid.
android:horizontalSpacing: It defines the amount of horizontal spacing
that will be applied between neighboring elements in the Grid.

15. What is an Adapter in android


Adapter is a bridge between Data storage (which could be an array) and
(UI element which could be list view or grid view.)
16. Methods of date picker and time picker
Date Picker Methods
1)getYear()
2)getMonth()
3)getDayOfMonth()
4)getFirstDayOfWeek()
Time Picker Methods
1)getCurrentHour()
2)getCurrentMinute()
3)is24HourView()

17. What are different types of sensors in android


Three categories are :
1)Position sensor
Examples: proximity sensor, Compass
2)Environment sensor
Examples : temperature sensor, humidity
3)Motion sensor
Examples : Gyroscope, Accelometer

18. What permissions are required to be declared in manifest file for


Bluetooth
uses-permission:android:name=android.permission.BLUETOOTH_CONNECT
uses-permission:android:name=android.permission.BLUETOOTH_ADMIN
uses-permission:android:name=android.permission.BLUETOOTH_ADVERTISE
uses-permission:android:name=android.permission.BLUETOOTH

19. Which class and method is used to start Camera


Intent(MediaStore.ACTION_IMAGE_CAPTURE)
20. Which class and method is used to send SMS in android
SMS Manager Class
sendTextMessage() method

21. What are 4 methods of Async task


doInBackground() : This method contains the code which needs to be
executed in background.
onPreExecute() : This method contains the code which is executed
before the background processing starts
onPostExecute() : This method is called after doInBackground method
completes processing. Result from doInBackground is passed to this
method
onProgressUpdate() : This method receives progress updates from
doInBackground method.

22. Which class is used to play audio and video in android


Media Player ()
Audio Manager()

You might also like