Android interview question answer - 2019
Dear reader, these Android Interview Questions have been structured extraordinarily to get you informed with the idea of inquiries you may experience amid your meeting for the subject of Android. According to my experience great interviewers hardly plan to make a specific question during your interview. typically questions begin with some essential idea of the subject and later they proceed dependent on further discussion and what you answer −
1.Android Characteristics
Criteria | Result |
Type of Operating System | Open Source |
OS Fragmentation | Multiple OS versions & interoperability concerns |
Customization | Heightened customization possible |
2.Why can not you run standard Java bytecode on Android?
Android utilizes Dalvik Virtual Machine (DVM) which requires a unique bytecode. As a matter of first importance, we need to change over Java class files into Dalvik Executable files utilizing an Android tool called "dx". In ordinary conditions, developers won't utilize this tool directly and build tools will think about the age of DVM compatible files.
3.Can Android application only be programmed in Java?
No, it isn't important. You can program Android applications can be made utilizing NDK in C/C++. The NDK is a toolset that enables you to actualize parts of your application utilizing native code language, for example, C and C++. Regularly, great use cases for the NDK are CPU-intensive applications such as game engines, signal processing and physics simulation.
4.Where will you declare your activity so that the system can reach it?
Activity is to be announced in the manifest file. For example:
first step includes ordering the resources folder (/res) utilizing the android resource packaging tool. These are arranged to a single class file called R.java. This is a class that just contains constants.
Second step includes the java source code being compiled to .class file by javac, and afterward the class files are changed over to Dalvik bytecode by the "dx" tool, which is included into the sdk 'tools'. The yield is classes.dex.
The last step includes the android apkbuilder which takes all the info and manufactures the apk (android packaging key) file.
Also Read
Android app architecture has the following components:
Services - It will display Background Functionality
Intent - This will demonstrate the difference between activities and data passing mechanism
Resource Externalization - strings and Graphics
Notification - sound, Light, icon, notification, dialog box and toast
Content Provider - This will share data between applications
Activities are basically containers or windows in the user interface.
8.What are the different storage methods in Android?
Android offers a few distinct alternatives for data persistence. Shared Preferences – Store private basic data in key-value pairs. This occasionally gets limited as it offers just key-esteem pairs. You can't spare your own java types. Internal Storage – Store personal data on device storage.
9.What is action in Android?
In Android, action is a description of something that is the intention of an intent sender desires.
syntax:
Contained in:
description:
Adds an action to an intent filter. An element must have one or more elements. If there is no one in it, then no intent objects will get through the Filter.
10.What types of flags are there for running apps in Android?
FLAG_ACTIVITY_NEW_TASK
FLAG_ACTIVITY_CLEAR_TOP.
For more details About Android Join CBitss Technologies . CBitss Provides Best Android Training in chandigarh sector 34A.