Sample Android Interview Question Book
Sample Android Interview Question Book
Introduction OF Android:
Android is a stack of software for mobile devices which has Operating System, middleware and some
key applications and uses a modified version of the Linux kernel. It was initially developed by Android Inc. It allows
developers to write managed code in the Java language, controlling the device via Google-developed Java libraries.
The application executes within its own process and its own instance of Dalvik Virtual Machine.
The Android SDK includes a comprehensive set of development tools. These include a debugger, libraries, a
handset emulator (based on QEMU), documentation, sample code, and tutorials. Currently supported
development platforms include x86-architecture computers running Linux (any modern desktop Linux distribution),
Mac OS X 10.4.8 or later, Windows XP or Vista.
Android does not use established Java standards, i.e. Java SE and ME. This prevents compatibility among
Java applications written for those platforms and those for the Android platform. Android only reuses the Java
language syntax, but does not provide the full-class libraries and APIs bundled with Java SE or ME.
What is an action?
A description of something that an Intent sender desires.
What is activity?
A single screen in an application, with supporting Java code.
What is intent?
A class (Intent) describes what a caller desires to do. The caller sends this intent to Android's intent resolver, which
finds the most suitable activity for the intent. E.g. opening a PDF file is intent and the Adobe Reader is the suitable
activity for this intent.
What is a resource?
A user-supplied XML, bitmap, or other files, injected into the application build process, which can later be loaded
from code.
What's the difference between file, class and activity in android?
File - It is a block of arbitrary information, or resource for storing information. It can be of any type.
Class – It is a compiled form of .Java file. Android finally used this .class files to produce an executable apk.
Activity - An activity is the equivalent of a Frame/Window in GUI toolkits. It is not a file or a file type it is just a class
that can be extended in Android for loading UI elements on view.
How will you record a phone call in Android? How to get a handle on Audio Stream for a call in Android?
Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoing calls.
How to select more than one option from list in android xml file? Give an example.
Specify android id, layout height and width as depicted in the following example.