Android Interview Questions and Answers
Question - 111 : - Give a brief idea about Android application architecture?
Answer - 111 : -
The architecture of Android application has few components, which have their functions to perform:
- Service: It performs the background functions
- Intent: Performs the interconnection function between activities and data passing mechanism
- Resource: Externalization it is used to perform strings and graphics functions
- Notification: This shows the lights, sound, icon, notification, incoming chats messages dialogue box, etc.
- Content providers: It shares the data between applications.
Question - 112 : - State the code names of Android along with the year when they were brought in?
Answer - 112 : -
Following are the code names with year:
Astro
Blender
Cupcake (April 2009)
Doughnut (September 2009)
Eclair (October 2009)
Froyo (may 2010)
Gingerbread (December 2010)
Honeycomb (February 2011)
Ice Cream Sandwich (October 2011)
Jellybean (July 2012)
Kitkat (October 2013)
Lollipop (November 2014)
Marshmallow (since October 2015)
Question - 113 : - State the advantages of Android?
Answer - 113 : -
Advantages of Android are as follows:
- It is an Open source that requires no licensing
- It is Platform independent that supports Windows, Mac, and Linux platforms.
- Supports different technologies like camera, Bluetooth, wifi, speech, EDGE, etc.
- It is a highly optimized virtual machine.
Question - 114 : - What are the other languages that Android supports other than JAVA?
Answer - 114 : -
Android supports C++, C. The app can be developed in C or C++ using Android NDK (Native development kit). This makes system works faster.
Question - 115 : - State the life cycle methods of Android activities?
Answer - 115 : -
There are seven lifecycle methods of Android activities. They are:
- On create()
- On start()
- On resume()
- On pause()
- On stop()
- On restart()
- On destroy()
Question - 116 : - what dialogue boxes are supported by the Android box?
Answer - 116 : -
Dialogue box supported by Android are:
- Alert dialogue
- Process dialogue
- Data picker dialogue
- Time picker dialogue
Question - 117 : - What are few exceptions in Android?
Answer - 117 : -
These are the following exceptions in Android:
- Inflate exception
- Surface.out of resource exception
- Surface holder bad surface type exception
- Window manager took exception.