Android Interview Questions
and Answers
1. Explain the Architecture
of Android ?
A. Top -> Applications (Contacts, Browser, Phone, etc)
Below Applications ->
Application Framework(Activity Manager, Window Manager, Content Providers, View
System, Package manager, Telephony manager, Resource, Notification, Location
managers)
Below Application Framework
-> System Libraries(Like Sqlite, webkit, SSL, OpenGL, Media Framework etc)
& Android Runtime( Core Libraries and DVM).
Atlast Last -> Linux Kernel
(which composed of drivers like display, camera etc.)
2. Explain about the
exceptions of Android?
A.The following are the exceptions that are supported by
Android
* InflateException : When an
error conditions are occurred, this exception is thrown
*
Surface.OutOfResourceException: When a surface is not created or resized, this
exception is thrown
*
SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the
lockCanvas() method, when invoked on a Surface whose is
SURFACE_TYPE_PUSH_BUFFERS
*
WindowManager.BadTokenException: This exception is thrown at the time of trying
to add view an invalid WindowManager.LayoutParamstoken.
A. The following are the advantages of Android:
* 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.
* Features like weather
details, live RSS feeds, opening screen, icon on the opening screen can be
customized
* Innovative products like the
location-aware services, location of a nearby convenience store etc., are some
of the additive facilities in Android. Components can be reused and replaced by
the application framework.
* Optimized DVM for mobile
devices
* SQLite enables to store the
data in a structured manner.
* Supports GSM telephone and
Bluetooth, WiFi, 3G and EDGE technologies
* The development is a
combination of a device emulator, debugging tools, memory profiling and plug-in
for Eclipse IDE.
4. Describe the APK format.
A.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.
5. What is .apk extension?
A.The extension for an Android package file, which
typically contains all of the files related to a single Android application.
The file itself is a compressed collection of an AndroidManifest.xml file,
application code (.dex files), resource files, and other files. A project is
compiled into a single .apk file.
6. What is .dex extension?
A.Android programs are compiled into .dex
(Dalvik Executable) files, which are in turn zipped into a single .apk file on
the device. .dex files can be created by automatically translating compiled
applications written in the Java programming language.
7. What is android?
A.Android is a stack of software for mobile devices
which has Operating System, middleware and some key applications. The
application executes within its own process and its own instance of Dalvik
Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM
executes Java language byte code which later transforms into .dex format files.
10. What is an activity?
A. A single screen in an application, with supporting
Java code.
An activity presents a visual
user interface for one focused endeavor the user can undertake.
For example, an activity might
present a list of menu items users can choose from or it might display photographs
along with their captions.
11. What is a service?
A.A service doesn’t have a visual user interface, but
rather runs in the background for an indefinite period of time.
For example, a service might
play background music as the user attends to other matters, or it might fetch
data over the network or calculate something and provide the result to
activities that need it.Each service extends the Service base class.
12. How to Remove Desktop
icons and Widgets?
A. Press and Hold the icon or widget. The phone will
vibrate and on the bottom of the phone you will see anoption to remove. While
still holding the icon or widget drag it to the remove button. Once remove
turns red drop the item and it is gone
13. Describe a real time
scenario where android can be used?
A .Imagine a situation that you are in a country where no
one understands the language you speak and you can not read or write. However,
you have mobile phone with you.
14. How to select more than
one option from list in android xml file? ********
A. Give an example. Specify android id, layout height and
width as depicted in the following example.
15. What languages does
Android support for application development?
A. Android applications are written using the Java
programming language.
16. Describe Android
Application Architecture?
A. Android Application Architecture has the following
components:
• Services – like N
• Intent – To perform
inter-communication network Operation between activities or services
• Resource Externalization –
such as strings and graphics
• Notification signaling users
– light, sound, icon, notification, dialog etc
17. What is the Android Open
Source Project?
A. We use the phrase “Android Open Source Project” or
“AOSP” to refer to the people, the processes, and the source code that make up
Android.
18. Why did we open the
Android source code?
A .Google started the Android project in response to our
own experiences launching mobile apps. We wanted to make sure that there would
always be an open platform available for carriers, OEMs, and developers to use
to make their innovative ideas a reality. We also wanted to make sure that
there was no central point of failure, so that no single industry player could
restrict or control the innovations of any other. The single most important
goal of the Android Open-Source Project (AOSP) is to make sure that the
open-source Android software is implemented as widely and compatibly as
possible, to everyone’s benefit.
19. What is the Guardian app
for Android?
A.The Guardian app for Android delivers all the best
content from guardian.co.uk to your phone or tablet. Read the latest news,
sport, comment and reviews, watch video, listen to brodcasts and browse
stunning picture galleries while on the move.
20. What features does it
have?
A .- Navigate by section, topic or contributor
- Download your homepage and
favourites for offline reading with the touch of a button, or schedule a daily
download for a time that suits you
- Browse our award-winning
audio and video content
- Save contributors, topics and
sections to your favourites folder
- Add favourites to your
homescreen with an expanded view or link
- Swipe through stunning
full-screen picture galleries
- Share articles and galleries
via the Android share function
- View content in portrait or
landscape orientation
21. Will it work on my
phone?
A.The app will work on all phones and tablets running
Android version 1.6 and above.
22. How much does it cost?
A.The app is free and ad-supported.
23. How do I save the app to
my SD card?
A. From the device's Settings menu, go to Applications
> Manage applications > The Guardian. Under the data header, choose
"Move to SD card".
24. How do I add sections to
my favourites?
A. It is possible to add sections, topics and
contributors to your favourites. You can add to favourites by tapping the star
icon in the top right hand corner of the relevant screens, or on the right hand
side of the headers in the all sections menu.
25. How do I remove sections
from my favourites?
A. From the favourites menu, tap the red icons to the
left hand side of the items. Alternatively, tap the star icon in the top right
hand corner of the relevant screen so that it returns to its white state.
26. What is Mono for
Android?
A. Mono for Android is a software development kit that
allows developers to use the C# language to create mobile applications for
Android-based devices.Mono for Android exposes two sets of APIs, the core .NET
APIs that C# developers are familiar with as well as a C# binding to Android's
native APIs exposed through the Mono.Android.* namespace.You can use Mono for
Android to develop applications that are distributed through the Android
Application Stores or to deploy software to your personal hardware or the Android
simulator.
27. What is included in Mono
for Android?
A. Mono for Android consists of the core Mono runtime,
the Mono for Android bindings to the native Android APIs, a Visual Studio 2010
plugin to develop Android applications and an SDK that contains the tools to
build, debug and deploy your applicationsOur Visual Studio 2010 plugin allows
developers to use Visual Studio 2010 to develop, debug and deploy their
applications to an Android simulator, an Android device, or the Android
Application Store.
Our MonoDevelop IDE also ships
an addin to support Mono for Android development.
28. What do I need to
develop Mono for Android applications?
A. Mono for Android on Windows provides a plugin for
Visual Studio 2010 Professional or better. We also support Mono for Android
development using MonoDevelop on Windows for users that do not own a copy of
Visual Studio 2010 Professional or better.Mono for Android on Mac developers
can use MonoDevelop.On all platforms, Mono for Android requires the Android SDK
(which requires Java JDK).
29. Will my users need to
install Mono?
A. No, When you deploy your application to the app store
the Mono mobile runtime is statically linked to your application. No additional
dependancies are needed. From the users point of view, there is no difference
between an application created in Java and an application created using Mono
for Android, other than a slightly larger (~4.4MB) application size.
30. Where is the UI
Designer?
A. Mono for Android does not bundle a UI designer to
create the UI XML files We do not provide an integrated UI designer in Mono for
Android 1.0. No decisions past that have been made. We will be listening to
user feedback to decide where to put resources for the future versions.
31. How is Mono for Android
licensed?
A. Mono for Android is a commercial/proprietary offering
that is built on top of the open source Mono project and is licensed on a
per-developer basis.
32. What is the API profile
exposed by Mono for Android?
A. Mono for Android uses the same API profile for the
core libraries as MonoTouch.Specifically, MonoTouch and Mono for Android both
support a Silverlight-based API, without Silverlight's UI libraries (e.g. no
XML, no WindowsBase.dll, etc.), and free of the sandboxing limitations of Silverlight.
33. Are the
Android releases available in a ROM?
A. No, Android is not yet available in a
ROM format.Currently Android is installed by using a clean SD Card, and booted
from there.It is booted by running a special application called 'Haret.exe'
residing on your SD Card which will terminate the Windows kernel and boot into
Linux/Android.It can't easily be run from ROM because a) it's too experimental
to risk putting in ROM and then killing a device and b) WinMo does some
hardware initialization that isn't documented, but is needed before Android can
run.
34. When will
it be available in a ROM?
A. No time soon. Folks are working on it,
but you'll need a lot of patience before it (if ever) arrives
35. How do I
turn off, or reboot Android?
A. In earlier releases, you had to pull the
battery or press the reset button, in newer releases, you can hold down the
'end call' button and see a menu.
36. Should we
jump in to Android? What’s the guarantee that’s what I will see on a phone?
Will service providers turn off things?
A. Keep in mind it hasn’t shipped yet, this
is the most interesting time. Once it is open source, it could be locked down…
they could create a derivative work.
We’re going to
provide a piece of technology that tests the APIs. No time frame yet. The
script will exercise the system. It’s a compatibility test suite, to make sure
nothing got disabled or broken by accident, and also ensure that apps will work
across OEMs.
37. What if my app uses
location API, and service provider shuts that off, can they?
A. They can do that… it’s not a
perfect world. Rather than having us dictate what carriers and OEMs support, we
let developers develop killer apps that will require it.
We want to ensure all the
application development that goes on for Android… we want to give OEMs an
incentive to keep things open. It’s a positive, self fulfilling vision.
38.If I’m a
game developer and I’m building piece of content and I want to sell it, how do
I do that and realize revenue?
A. Content distribution — we’ve thought of
that. It’d be great if there were a place where people could go to safely
download and pay for content.
39.
We use SMS interception for system signalling. Is there a mechanism for an
app to respond and stop the signaling chain? Is there security around that so
that one vendor can’t hijack a message and respond to it?
A. There’s a mechanism where an application
can register to receive a message with a certain signature and prevent others
from getting it. We have a system of permissions apps are able to declare,
enforce, and require to perform certain operations. Things like dial the phone,
get to contacts, etc.. But these aren’t things that are baked in the core of
the system. An arbitrary app could declare custom permissions.
As far as
restricting another app, the model we’ve been going by… the phone is not
controlled by the application vendor, it’s controlled by the user. Whether or
not the permissions are granted is up to the user that owns the phone. If you
created a protocol that intercepts an SMS and another party wrote an app that
intercepts the same SMS and the user wants to use that, the user could be free
to stick that in.
40. Can the user set a
priority?
A. Don’t know, post your question to the developer’s
community board.
41. In a previous release, XMPP was
turned into GTalk. Will a future version have XMPP?
A. Goal is to have XMPP support after 1.0.
[Later they said both GTalk and XMPP were post 1.0 features. -Ed]
42. What’s so special about
Android?
A. Unlike the proprietary iPhone operating system (now
known as "iOS,"), which is under the complete control of Apple — and
the same goes for Research in Motion’s BlackBerry OS or Microsoft’s Windows
Phone platform — Google released Android as an open-source OS under the auspices
of the Open Handset Alliance, leaving phone manufacturers (relatively) free to
tweak Android as they see fit for a given handset.
That’s one thing that’s special
about Android. Another thing is that it just happens to be a really good OS,
the first one in the post-iPhone wireless era to really give Apple a run for
its money. Android may not be as sleek or polished as iOS (that’s my humble
opinion, at least), but it’s fast and powerful, with an intuitive user
interface that’s packed with options and flexibility. It’s also being
constantly improved courtesy of the big brains at Google, making the Android
experience sleeker by the day.
43. Are Android phones
called "Droids"?
A. Not necessarily. "Droid" is a brand name
used by Verizon Wireless for its Android-based phones — the Droid X, the Droid
Eris, the Droid Incredible and so on. The HTC Evo 4G on Sprint is not a
"Droid," per se, but it’s still an Android smartphone.
44. Why would I
(potentially) choose an Android phone over an iPhone?
A. Well, for a variety of reasons — although I should
point out that I’m actually a fan of both operating systems. (Sorry to
disappoint the smartphone flame warriors out there.)
One reason to go the Google way
is that Android phones boast tight integration with Google services like Gmail,
Google Calendar, Google Contacts and Google Voice — perfect for anyone who uses
Google for all their e-mails, contacts and events. Indeed, one of the coolest
things about Android phones is that the first time you fire one up, you enter your
Google user name and password, and voila: All your Google messages, contacts
and other info start syncing into your new handset automatically, no desktop
syncing needed.
Android is also far more open
when it comes to applications. Whereas Apple takes a "walled garden"
approach to its App Store, Google won’t restrict you from installing apps that
aren’t featured in its official Android Marketplace. iPhone users, on the other
hand, must "jailbreak" their phones if they want to install apps that
weren’t approved by Apple for inclusion in the App Store.
Last but not least, because
Android is open to all manufacturers, a wide variety of Android phones are
available to choose from — big and small, souped-up and pared-down, some with
slide-out keyboards (good luck convincing Steve Jobs to put a slide-out QWERTY
on the iPhone) and some that are all-touchscreen, all the time. Indeed, in the
past few months, a new Android phone has debuted practically every week, while
we only get a single new iPhone each year.
45. What are the downsides
of Android?
A. Well, if you ask me, the Android OS isn’t quite as
forgiving to wireless beginners as the iPhone is. Setting up your e-mail,
contacts and calendar on Android is a breeze (if you’re all about Gmail, that
is), but when it comes to, say, your music and videos, you’re on your own with
Android, which lacks an official media syncing client for the desktop. With the
iPhone, you do all your syncing on easy-to-use iTunes, which also lets you
manage your e-mail accounts, contacts, apps and photos. Then again, you can
only use iTunes for syncing the iPhone, while Android users have a variety of
third-party options.
That’s just one example, but in
general, Android gives you more options and choices about how you manage your
phone and your mobile content — great for experienced and advanced users, but
potentially intimating for new mobiles.
On the other hand, while
beginners might appreciate the (usually) smooth, user-friendly experience that
Apple has devised for the iPhone, advanced users may (and often do) get
frustrated by Apple’s tight control over what they can and can't do on the
iPhone. It’s a trade-off, plain and simple, and your choice of platform depends
on what’s right for you.
46. What’s up with all these
different versions of Android, like "Donut," "Cupcake" and
"Froyo"?
A. Just as Apple does with iOS, Google continually
updates Android with cool new features, leading to one "point" upgrade
after another.
The most recent version of
Android is 2.2, code-named "Froyo" (for frozen yogurt, yum), adds
features such as native USB tethering (for sharing your Android phone’s data
connection with a laptop via a USB cable), mobile hotspot functionality (which
turns your phone into a portable Wi-Fi hotspot that works with nearby Wi-Fi devices)
and — perhaps most important — support for Flash, meaning that Flash-powered
videos and modules that (notoriously) don’t work on the iPhone will work on the
Android Web browser.
Before 2.2 Froyo, we had
version 2.1, which added "live" animated wallpaper, new home screen
icons and widgets (tiny apps for the home screen), speech-to-text functionality
(for e-mail and text messages, for example), full-on multitouch (for
pinch-to-zoom gestures), and an updated photo gallery that hooks into your
Picasa Web albums. Android 1.6 "Donut" (someone at Google must have a
sweet tooth) added various speed improvements, support for more screen
resolutions, and faster camera and camcorder applications. The first major
update to Android was 1.5 "Cupcake," which (among other goodies)
finally added a native video recorder.
47. So if the current
version of Android is 2.2, why are people still complaining about Android
phones stuck with version 2.1, or even 1.6?
A. Ah, well, here’s where we find one of the downsides of
Google allowing so much diversity in terms of available Android handsets. Don’t
get me wrong: Variety is a beautiful thing, especially when it comes to phones.
But it also means that each new version of Android must be certified to work on
a specific handset — a long and sometimes drawn-out process that can leave
users of a particular Android smartphone waiting weeks or even months to get
the latest and greatest features. Indeed, manufactures and carriers may decide
that it’s not worth the effort to upgrade their older phones to the latest
Android version, leaving users high and dry.
On the other hand, only a
handful of iPhones exist, which makes it far easier for Apple to roll out a new
version of iOS to everyone, all at once — or at least it used to be easy.
Because of the hardware demands of iOS 4, we’ve already seen the original
iPhone from 2007 get left behind, while users of the second-generation iPhone
3G have complained bitterly that the new iOS has slowed their handsets to a
crawl. So it goes.
48. How many apps are
available for Android?
A. About 70,000 or so, growing by the day — still just a
fraction of the 225,000-plus apps in the Apple App Store, but the official
Android Marketplace has quite the head of steam, not to mention plenty of
goodwill from the developer community given that Google doesn’t give apps the
star-chamber treatment.
49. So, how should I go
about picking an Android phone?
A. No question about it: The breadth and variety of
Android phones now on the market can be downright bewildering. The easiest way
to narrow your choices is pretty obvious: What features and form-factors are
you looking for? Do you want a phone with a real QWERTY keypad, or would you
prefer one with only an on-screen keypad? Looking for a big screen (like the
4.3-inchers on the Evo 4G or the Droid X) or something that’s an easier fit in
your pocket (like, say, the Droid Incredible)? Will you primarily be sending e-mail
and text messages (in which case a smaller screen with a QWERTY would work), or
are you interested in watching movies and other videos (big display)? Finally,
who’s your carrier — or who would you like to be your carrier?
Note, it’s not rocket science.
Once you’ve zeroed in on a
phone, find out which version of Android it’s running on. Is it the latest and
greatest? (For now, only the Motorola Droid 2 is shipping with Android 2.2,
although a 2.2 update for the HTC Evo 4G has finally arrived.) If not, ask when
— and whether — an update is on the way.
50. What are the hottest new
Android phones out right now?
A. Well, earlier this summer we got the HTC Evo 4G, which
supports Sprint’s budding, next-generation WiMax data network and boasts a
4.3-inch display — the same size as the screen on the Motorola Droid X, another
eye-popper of a phone, except it’s on Verizon instead of Sprint. Samsung is in
the midst of releasing a series of what it calls its Galaxy S-class Android
phones: They’re thin and light, they all have high-contrast 4-inch "Super
AMOLED" screens, and they’re available (or will be soon) on all four of
the big U.S. carriers. If you’re looking for an Android phone with a slide-out
QWERTY, consider the new Motorola Droid 2 on Verizon or the upcoming Samsung
Epic 4G for Sprint.
51. How will you record a
phone call in Android? How to get a handle on Audio Stream for a call in
Android?
A. Permissions.PROCESS_OUTGOING_CALLS: Allows an
application to monitor, modify, or abort outgoing calls.
52. Why cannot you run
standard Java bytecode on Android?
A. Android uses Dalvik Virtual Machine (DVM) which
requires a special bytecode. We need 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.
53. Can you deploy
executable JARs on Android? Which packaging is supported by Android?
A. No. Android platform does not support JAR deployments.
Applications are packed into Android Package (.apk) using Android Asset
Packaging Tool (aapt) and then deployed on to Android platform. Google provides
Android Development Tools for Eclipse that can be used to generate Android
Package.
54. Android application can
only be programmed in Java?
A. False. You can program Android apps in C/C++ using NDK
.
55. What is an action?
A. The Intent
Sender desires something or doing some task
56. What are Dalvik
Executable files?
A. Dalvik Executable files have .dex extension and are
zipped into a single .apk file on the device.
57. How does Android system
track the applications?
A. Android system assigns each application a unique ID
that is called Linux user ID. This ID is used to track each application.
58. When does Android start
and end an application process?
A. Android starts an application process when
application's component needs to be executed. It then closes the process when
it's no longer needed (garbage collection).
59. How can two Android
applications share same Linux user ID and share same VM?
A. The applications must sign with the same certificate
in order to share same Linux user ID and share same VM.
60. Can I use the GoToMeeting app for Android on my
Android device?*****
A. Yes. If you’re running Android 2.2 or higher, you can
install the GoToMeeting app from the Android Market to join meetings and
webinars as an attendee. We recommend using devices with a 1Ghz processor or
higher for optimal performance.
61. How can I download the
GoToMeeting app?
A. You can download the GoToMeetng app from the Android
Market by signing in to your Google account linked with your Android device and
searching for the GoToMeeting app to install it. If you don’t see an Install button,
you may not be running Android 2.2 or higher – the minimum system requirement
needed to install the GoToMeeting app.
You can also download the
GoToMeeting app from the Amazon Appstore (only available in the U.S.), which
lets you instantly download the GoToMeeting app to an Android device.
If you have the GoToMeeting app
pre-loaded onto your device, you’ll need to first upgrade to the latest version
of GoToMeeting. To upgrade, select the GoToMeeting daisy icon and then select
the Upgrade button to install the most recent version of the app.
62.If I have a Motorola
Android-based device that doesn’t have the Android Market app, can I still
download the GoToMeeting app?
A.Yes. Attendees using Motorola Android-based devices in
China can now download the GoToMeeting app from SHOP4APPS™ – Motorola’s
preinstalled Android application storefront. The GoToMeeting app is not yet
localized in Chinese, but it is available in English, German, French, Spanish
and Italian.
63.What made you jump into
Android all of a sudden? Why not iOS or other mobile platforms?
A. Maxim Petrov: I've never
intended to do any mobile startup, but I got an Android phone first (Nexus
One), not iPhone, so I started to look into this platform first. The lack of
Google's own music app was obvious. I think if it was iPhone, not Nexus One, I
could go developing for iOS instead. Though, you know, there are a lot more
really good apps that already exist for iOS (and existed a year ago), all
niches are filled, Apple is pretty restrictive (I don't think PowerAMP iPhone
version would have ever been accepted in the Appstore). You can jump into
Android quickly - just download the SDK, install adb driver, and you can
develop - for your phone, for your friends (first beta testers), it's much
easier to start on Android, but I can only compare to what I've read about iOS
development as I haven't developed anything for iPhone.
64. What were your initial
impressions of Android development?
A. Maxim
Petrov: Android developing (and
actually, any software developing) is not about knowing the language -
languages are just tools, so adding a tool to a toolbox is usually not a
problem (I moved to Android/Java/C dev right from Ruby - and these are
completely different languages). Given experience with any other languages, you
can move to Android pretty quickly, at least start prototyping something,
though, you need to fight the initial quirks (like SDK installation, lack of
good documentation, android SDK/Eclipse and framework bugs, and the Android
core devs' "you can't do that, please don't do that").Android
development infrastructure is very immature, while Android end user can never
notice the immaturity of the platform (as actually, it's not so immature on end
user side), the development side of things is really lacking in many areas.
For example, documentation is
lacking, often conflicts with real state of things and it's just not enough.
Though, this is balanced by the fact that Android is open source - you can just
go check the source, and the source is the best documentation, but you need to
get used (I am) to this approach. For example, Honeycomb sources are not
published yet, and this immediately raised questions, like how do they activate
that menu button in bottom status bar.
65. Does Android support Adobe
Flash in the browser?
A.Flash support varies by device with Android 2.1. The
Samsung Acclaim does not have Flash support upon launch, but the HTC Desire
will support Flash Lite 4.0 running Android 2.1. Flash 10.1 support is coming
to Android-powered phones with Android 2.2.
66.Does Android support push
email or is it pull?
A. Android 2.1 supports push e-mail for Exchange mail and
Gmail.
67. Will these phones have
world phone capabilities, with the ability to make calls, receive data in other
countries? Or will they be able to use Google Voice to make calls?
A.Our Android-powered phones have Wi-Fi which can be
used abroad for data, including Google Voice for making international calls.
International Roaming for voice is available in several countries.
68. Will the App run on my
Android phone?
A. Yes, our App is fully compatible with any Android
phone running Android software v2.1 or later.
69. How do I install your
App?
A. You can install our App from the Android Market by
following the below steps:
Open the Android Market
application in the Applications menu.
Hit the search icon and type in
E.ON
To install it, hit the ‘Free’
button on the left hand side
In the next screen, it will
give you more details about the application including the different
functionalities it will need to access. Just click on OK to finish installing
the application.
70. How do I find and
download updates to the E.ON Android application?
A. Any updates to our App will appear on your
notification menu at the top of your screen. Just tap on the E.ON App icon and
you'll be taken into the Android Market and be presented with the E.ON App
download page.
71. What do I do if I have
problems downloading your App?
A. If you receive a "Download unsuccessful"
message when trying to download our App you can try the following steps:
·
Restart your
phone and then try downloading the app again.
·
Make sure that
you’re connected to your network – if you’re not you’ll need to contact your
mobile service provider
·
Wait up to 10
minutes and try to download our App again.
If you get stuck at
"Starting download" then:
·
Make sure that
you’re connected to your network – if you’re not you’ll need to contact your
mobile service provider
·
If your request
to download our App doesn’t start at all then try the below:
·
Check your
connectivity as stated above
·
Make sure that
your phone has enough available space to install our App. If you need to, try
uninstalling some apps that you don’t use anymore or moving them to your SD
card.
·
Request the
download again using Android Market from your device.
72. What is Intent?
A.A class (Intent) which
describes what a caller desires to do. The caller will send this intent to
Android's intent resolver, which finds the most suitable activity for the
intent. E.g. opening a PDF document is an intent, and the Adobe Reader apps
will be the perfect activity for that intent (class).
73. What is a Sticky
Intent?
A. Sticky Intent is also a
type of Intent which allows a communication between a function and a service sendStickyBroadcast() performs a sendBroadcast(Intent) known
as 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.
74. How the nine-patch
Image different from a regular bitmap? Alternatively, what is the difference
between nine-patch Image vs regular Bitmap Image?
A. It is one of a resizable
bitmap resource which is being used as backgrounds or other images on the
device. The NinePatch class allows drawing a bitmap in nine sections. The
four corners are unscaled; the middle of the image is scaled in both axes, the
four edges are scaled into one axis.
75. What is a resource?
A. user defined JSON, XML,
bitmap, or other file, injected into the application build process, which can
later be loaded from code.
76.How will you record a phone
call in Android? or How to handle an Audio Stream for a call in Android?
Permission.PROCESS_OUTGOING_CALLS: Will Allow an application to monitor, modify, or
abort outgoing calls. So using that permission we can monitor the Phone calls.
77.Does Android support the
Bluetooth serial port profile? Yes.
78. Can an application be started on powerup?
Yes.
79. How to Translate in
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.
80. Describe Briefly the
Android Application Architecture?
A. Android Application Architecture has the following
components:
Services like Network Operation Intent - To perform inter-communication between activities
or servicesResource Externalization - such as strings and graphics Notification
signaling users - light, sound, icon, notification, dialog etc.
Content Providers - They
share data between applications
81. What is needed to make
a multiple choice list with a custom view for each row?
A. Multiple choice list can
be viewed by making the CheckBox android:id value be “@android:id /text1".
That is the ID used by Android for the CheckedTextView in
simple_list_item_multiple_choice.
82. What dialog boxes are
supported in Android ?Android supports 4 dialog boxes:
AlertDialog: An alert dialog box supports 0 to 3 buttons and a list of selectable
elements, including check boxes and radio buttons. Among the other dialog
boxes, the most suggested dialog box is the alert dialog box.
ProgressDialog: This dialog box displays a progress wheel or a
progress bar. It is an extension of AlertDialog and supports adding buttons.
DatePickerDialog: This dialog box is used for selecting a date by the
user.
TimePickerDialog: This dialog box is used for selecting time by the
user.