0% found this document useful (1 vote)
1K views

Sample Android Interview Question Book

Android is an open source software stack that includes an operating system, middleware and key applications. It allows developers to write managed code in Java and controls devices via Google-developed Java libraries. The Android SDK includes development tools like an emulator and debugger. Applications are compiled into a single .apk file containing code, resources and manifest files. Intents describe actions for components like activities to handle, and resources are user-supplied files injected during building.

Uploaded by

bhaveshsoni
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views

Sample Android Interview Question Book

Android is an open source software stack that includes an operating system, middleware and key applications. It allows developers to write managed code in Java and controls devices via Google-developed Java libraries. The Android SDK includes development tools like an emulator and debugger. Applications are compiled into a single .apk file containing code, resources and manifest files. Intents describe actions for components like activities to handle, and resources are user-supplied files injected during building.

Uploaded by

bhaveshsoni
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Android Questions & Answers

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 language does Android support for application development?


Android applications are written using the Java programming language.

Describe a real time scenario where android can be used?


Imagine a situation that you are in a country where no one understands the language you speak and you cannot
read or write. However, you have mobile phone with you.
With a mobile phone with android, the Google translator translates the data of one language into another
language by using XMPP to transmit data. You can type the message in English and select the language which is
understood by the citizens of the country in order to reach the message to the citizens.

What are the advantages of Android?


The following are the advantages of Android:
1) The customer will be benefited from wide range of mobile applications to choose, since the monopoly
of wireless carriers like AT&T and Orange will be broken by Google Android.
2) Features like weather details, live RSS feeds, opening screen, and icon on the opening screen can be
customized.
3) Innovative products like the location-aware services, location of a nearby convenience store etc., are
some of the additive facilities in Android.
4) Components can be reused and replaced by the application framework.
5) Optimized DVM for mobile devices.
6) SQLite enables to store the data in a structured manner.
7) Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies.
8) The development is a combination of a device emulator, debugging tools, memory profiling and plug-in
for Eclipse IDE.

Describe the APK format.


The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and other files.
A project is compiled into a single .apk file.

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.

Can an application be started on power-up?


Yes.

Does Android support the Bluetooth serial port profile?


Yes.

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.

What is a Sticky Intent?


sendStickyBroadcast() performs a sendBroadcast (Intent) that is "sticky," i.e. the Intent you are sending stays
around after the broadcast is complete, so that others can quickly retrieve that data through the return value of
registerReceiver (BroadcastReceiver, IntentFilter). In all other ways, this behaves the same as
sendBroadcast(Intent).
One example of a sticky broadcast sent via the operating system is ACTION_BATTERY_CHANGED. When you call
registerReceiver() for that action -- even with a null BroadcastReceiver -- you get the Intent that was last broadcast
for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future
state changes in the battery.

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.

<ListView android:id="[at]+id/ListView01" android:layout_height="wrap_content"


android:layout_width="fill_parent"></ListView>
References: 
http://www.seminarprojects.com/Thread-android-interview-questions
http://theindianmba.com/forums/viewtopic.php?f=5&t=1448

You might also like