Android Interview Questions

Android Interview Questions

  • What is Android?

Android is a stack of software for mobile devices, which includes an Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine.

  • Describe Android application Architecture?

Android application architecture has the following components. They are as follows −
Services − It will perform background functionalities
Intent − It will perform the inter connection between activities and the data passing mechanism
Resource Externalization − strings and graphics
Notification − light,sound,icon,notification,dialog box, and toast
Content Providers − It will share the data between applications.

Android Interview Questions

  • What is An Activity?

Activity performs actions on the screen. If you want to do any operations, we can do with activity.

  • What is the APK format?

The Android packaging key is compressed with classes,UI’s, supportive assets and manifest. All files are compressed to a single file is called APK.

Android Interview Questions

  • What is An Intent?

It is connected to either the external world of application or internal world of application, Such as, opening a pdf is an intent and connect to the web browser etc.,

  • What is an explicit Intent?

Android Explicit intent specifies the component to be invoked from activity. In other words, we can call another activity in android by explicit intent.

 

Android Interview Questions

  • What is an implicit Intent?

Implicit Intent doesn’t specify the component. In such case, intent provides information of available components provided by the system that is to be invoked.

  • What is an android manifest file?

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app’s code.

Android Interview Questions

  • What language does android support to develop an application?

Android applications has written using the java(Android SDK) and C/C++(Android NDK)

  • What do ADT stands for?

ADT stands for Android development tool, This is useful to develop the applications and test the applications.

 

Android Interview Questions

  • What are the tools are placed in An Android SDK?

Android SDK collaborated with Android Emulator, DDMS(Dalvik Debug Monitoring Services),AAPT(Android Asset Packaging tool) and ADB(Android debug bridge)

  • What is viewGroup in android?

View group is a collection of views and other child views, it is an invisible part and the base class for layouts.

Android Interview Questions

  • What is a service in android?

The Service is like as an activity to do background functionalities without UI interaction.

  • What is a content provider in android?

A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. A content provider can use different ways to store its data and the data can be stored in a database, in files, or even over a network.

 

Android Interview Questions

  • What are the notifications available in android?

Toast Notification − It will show a pop up message on the surface of the window
Status Bar Notification − It will show notifications on status bar
Dialogue Notification − It is an activity related notification.

  • What is container in android?

The container holds objects, widgets, labels, fields, icons, buttons etc.,

Android Interview Questions

  • What is ADB in android?

It is acts as bridge between emulator and IDE, it executes remote shell commands to run applications on an emulator.

  • What is ANR in android?

ANR stands for application is not responding, basically it is a dialog box that appears when the application is not responding.

 

Android Interview Questions

  • What is an Adapter in android?

The Adapter is used to create child views to represent the parent view items.

  • What is shared preferences in android?

Shared preferences are the simplest mechanism to store the data in XML documents.

Android Interview Questions

  • What are the key components in android architecture?

Linux Kernel
Libraries
Android Framework
Android applications

  • What does the intent filter do in android?

Intent filters are filter out the intents.

 

Android Interview Questions

  • Where layouts are placed in android?

In The Layout folder, layouts are placed as XML files

  • What is nine-patch images tool in android?

We can change bitmap images in nine sections as four corners, four edges and an axis

Android Interview Questions

  • How many dialog boxes do support in android?

AlertDialog, ProgressDialog, DatePickerDialog, and TimePickerDialog

  • What are the exceptions available in android?

InflateException, Surface.OutOfResourceException, SurfaceHolder. BadSurfaceTypeException, and WindowManager.BadTokenException.
 
Android Interview Questions

  • What is the order of dialog-box in android?

Positive, Neutral, Negative

  • What are the different storages available in android?

Shared Preferences, Internal Storage, External Storage, SQLite Databases and Network Connection

Android Interview Questions

  • Why cannot you run standard Java bytecode on Android?

Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode. First of all, we have to convert Java class files into Dalvik Executable files using an Android tool called “dx”. In normal circumstances, developers will not be using this tool directly and build tools will care for the generation of DVM compatible files.
Android Interview Questions

  • What is a Sticky Intent in android?

Sticky Intent is also a type of intent which allows the communication between a function and a service for example, sendStickyBroadcast() is perform the operations after completion of intent also

  • How to Translate in Android?

Android uses Google translator to translate data from one language into another language and placed as a string while development

  • Where can you define the icon for your Activity?

The icon for an Activity is defined in the manifest file.
which means you have to Open AndroidManifest.xml.Right under the root “manifest” node of the XML, we can see the “application” node. We have added this attribute to “application”. (The “icon” in “@drawable/icon” refers to the file name of the icon.)
android:icon=”@drawable/icon”

  • Enumerate three key loops when monitoring an activity?

Entire lifetime – activity happens between onCreate and onDestroy
Visible lifetime – activity happens between onStart and onStop
Foreground lifetime – activity happens between onResume and onPause

  • Which dialog boxes can you use in your Android application?

AlertDialog : An alert dialogue box supports 0 to 3 buttons and a list of selectable elements.
ProgressDialog : An extension to AlertDialog and you may add buttons to it. It shows a progress wheel or a progress bar.
DatePickerDialog : It is used for selecting a date by the user.
TimePickerDialog : It is used for selecting time by the user.
Android Interview Questions

KyrosAcademy

This information box about the author only appears if the author has biographical information. Otherwise there is not author box shown. Follow YOOtheme on Twitter or read the blog.
Contact-9952948899 For career consultation

Offcanvas