This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the latest version of Android? List all the versions of Android. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Answer» The latest version is Android 11.0 released in September 2020. Most of the Android version has been named after either sweet or desserts. The following table represents the different versions, Android name, API level, and the year of release. Here API level is the integer value that identifies the API framework revision given by the version of the android platform.
Android 1.0 (API 1): There were NUMEROUS loopholes in this Android version including the necessity of physical keyboards or hardware buttons. Important features are:
Android 1.1 (API 2): This version was released with API changes and resolved issues found in 1.0. Important features of this version are:
Android 1.5 Cupcake (API 3): It brought the third-party app widgets that were the most distinguishing and valuable feature. Important features of this version are:
Android 1.6 Donut (API 4): It had valuable changes including the ability to operate on various screen resolutions and SIZES. Donut provides the text and voice entry search including bookmark history and capacity to select multiple images for deletion. Important features of this version are:
Android 2.0-2.1 Eclair (API 5-API 7): It was released with multiple email account synchronizations and contacts. Many new features were added including flash support, color effect, scene mode, white balance, macro focus, and digital zoom. Android 2.1 version brought bug fixes and stability improvements. The most valuable feature introduced was real-time traffic information and voice-guided turn by turn navigation. Important features are:
Android 2.2-2.2.3 Froyo (API 8): It was released with memory, speed, and performance improvements. It was introduced with the enhanced Bluetooth functionality and also compatibility with docks, portable Wi-Fi hotspot for 3G CONNECTION sharing. Features are:
Android 2.3-2.3.7 Gingerbread (API 9-API 10): The main enhanced feature was the introduction of gaming API with improved graphical intense gaming. Features are:
Android 3.0-3.2.6 Honeycomb (API 11-API 13): It was a tablet-only release to launch the Motorola Xoom. It was suitable for those mobiles having a larger view than current smartphones. Features will include:
Android 4.0-4.0.4 Ice Cream Sandwich (API 14-API 15): It is released with many enhanced features to enter the era of modern design. The snapshot was introduced to take screenshots by holding the power and volume button. Ice cream sandwich widgets are more robust and resizable compared to all older versions. Supported features are:
Android 4.1-4.3.1 Jelly Bean (API 16-API 18): It is released with Google digital assistant technology accessible from the home screen. The spectacular predictive intelligence utility gives expandable and interactive notifications. Users can enjoy multi-user support(Only for tablets). Supported features are:
Android 4.4-4.4.4 KitKat (API 19-API 20): It is released with more focus on better user experience. Supported features are:
Android 5.0-5.1.1 Lollipop (API 21-API 22): It was released with a redesigned user interface and built with “material design”. It is having many amazing features including support for better notification management. Supported features are:
Android 6.0-6.0.1 Marshmallow (API 23): Google used “Macadamia Nut Cookie” to describe Android version 6.0 before the official announcement of Marshmallow. Supported features are:
Android 7.0-7.1.2 Nougat (API 24-API 25): It was released with a native split-screen mode, data saver functionality, and a “bundled-by-app” system to organize notifications. Supported features are:
Android 8.0-8.1 Oreo (API 26-API 27): It is having notification snoozing options, native picture-in-picture mode, and better control over how applications can alert you by notifications. Supported features are:
Android 9.0 Pie (API 28): It is having plenty of amazing features according to the user interests and requirements. Supported features are:
Android 10.0 (API 29): It is released with enhanced features and functionalities with higher API levels. Supported features are:
Android 11.0 (API 30): Android developers are continuously working to provide more advanced applications as per the user requirements. Important features included are:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2. |
What is the role of Dalvik in Android development? |
|
Answer» DALVIK serves as a VIRTUAL MACHINE, and it is responsible for running every ANDROID application. Because of Dalvik, a device will have the ability to execute multiple instances of virtual machines efficiently through better memory MANAGEMENT. |
|
| 3. |
What are containers? |
|
Answer» Containers carry objects and widgets together, based on which specific items are required and in what particular arrangement is needed. Containers may hold labels, buttons, fields, or even CHILD containers, etc. For EXAMPLE, if you WANT a form with fields on the left and labels on the right, you will need a CONTAINER. If you want the OK and Cancel buttons to be below the rest of the form, next to one another, and flush to the right side of the screen, you will need a container. If you have several widgets, you will need a container to have a root element to place the widgets inside. Android provides a collection of view classes that serve as containers for views. These container classes are called LAYOUTS, which are defined in the form of XML files that cannot be changed by our code during execution. The layout managers provided by Android SDK are LinearLayout, RelativeLayout, FrameLayout, AbsoluteLayout, GridLayout, and TableLayout. |
|
| 4. |
Explain different launch modes in Android. |
|
Answer» The different launch modes in Android are given below:
SingleTop:
SingleTask:
SingleInstance:
Again if you Call the activity D, then it will call the same activity from the 2nd stack and pass the intent to onNewIntent(). |
|
| 5. |
What are the troubleshooting techniques you can follow if an application is crashing frequently? |
|
Answer» If an Android application is crashing frequently, you can follow the below-given techniques: Compatibility Check: It is not possible to test an application for all kinds of devices and operating systems. There might be a possibility that an application is not compatible with your OS. MEMORY Management:
|
|
| 6. |
What is ANR in Android? What are the measures you can take to avoid ANR? |
|
Answer» ANR(Application is Not Responding) is a dialog box that appears when the application is not responding. This ANR dialogue is displayed whenever the MAIN thread within an application has been unresponsive for a long time under the following conditions:
Following measures can be taken to avoid ANR:
|
|
| 7. |
Explain the difference between Implicit and Explicit Intent. |
|
Answer» The difference between the implicit and explicit Intents are given below: Explicit INTENT: An Explicit Intent is where you inform the SYSTEM about which activity should handle this intent. Here target component is defined DIRECTLY in the intent. For EXAMPLE, Intent i = new Intent(this, Activitytwo.class); #ActivityTwo is the target componenti.putExtra("Value1","This is ActivityTwo"); i.putExtra("Value2","This Value two for ActivityTwo"); startactivity(i);Implicit Intent: An Implicit Intent permits you to DECLARE the action you want to carry out. Further, the Android system will check which components are registered to handle that specific action based on intent data. Here target component is not defined in the intent. For example, Intent i = new Intent(ACTION_VIEW,Uri.parse("http://www.interview bit.com")); startActivity(i); |
|
| 8. |
What is context? |
|
Answer» The context in Android is the context of the current state of the application or object. The context comes with services like giving ACCESS to DATABASES and preferences, resolving resources, and more. There are two types of context. They are: Activity context
Application context:
|
|
| 9. |
What is a Toast? Write its syntax. |
|
Answer» Toast is a message that POPS up on the screen. It is USED to DISPLAY the message regarding the status of the operation initiated by the user and covers only the expanse of space required for the message while the user’s recent activity REMAINS visible and interactive. Toast notification automatically fades in and out and it does not accept interaction events. Syntax: Toast.makeText(ProjectActivity.this, "Your message here", Toast.LENGTH_LONG).SHOW(); |
|
| 10. |
Mention the difference between class, file and activity in Android? |
|
Answer» The DIFFERENCE between them is as follows:
|
|
| 11. |
What is an intent? |
|
Answer» An intent is a messaging object that is USED to request an action from other components of an APPLICATION. It can also be used to LAUNCH an activity, send SMS, send an email, display a web page, etc. It shows notification messages to the user from WITHIN an Android-enabled device. It alerts the user of a particular STATE that occurred. There are two types of intents in Android:
|
|
| 12. |
What is AndroidManifest.xml file and why do you need this? |
Answer»
|
|
| 13. |
Explain the dialog boxes supported on Android. |
|
Answer» Android supports FOUR DIALOG boxes. They are:
|
|
| 14. |
Explain Sensors in Android. |
|
Answer» Android-based devices have a collection of built-in sensors in them, which measure certain parameters LIKE motion, orientation, and many more through their high ACCURACY. The sensors can be both HARDWARE and software based on nature. There are three prominent categories of sensors in Android devices. They are:
|
|
| 15. |
What is the life cycle of Android activity? |
Answer»
|
|