Wednesday, May 21, 2014

TOP 20 Android Interview Questions and Answers pdf

The below List of top 20 Android Interview Questions and Answers for freshers and experienced pdf free download
1) 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.

2) What is an action?
A description of something that an Intent sender desires.

3) What is activity?
A single screen in an application, with supporting Java code.

4) 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.

5) How is nine-patch image different from a regular bitmap?
It is a resizable bitmap resource that can be used for backgrounds or other images on the device.
The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges are scaled in one axis, and the middle is scaled in both axes.

6) What languages does Android support for application development?
Android applications are written using the Java programming language.

7) What is a resource?
A user-supplied XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.

8) 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’s 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.

9) 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.

10) Are the Android releases available in a ROM?
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.

11) Where can I download a release?
There are a number of Android releases (all at varying stages of development). Use the search function to locate one, or try these:
http://forum.xda-developers.com/showthread.php?t=732362 (Standard XDAndroid for multiple HTC Devices) Both come with very clear instructions on how to install

12) What is the Open Handset Alliance?
The OHA is a consortium of 30 technology and mobile companies that have joined hands to accelerate innovation in mobile technology and at the same time offer the end users a better, costeffective and richer mobile experience.

13) What innovations the OHA members strive to achieve?
The OHA members have endeavored to develop Android, the open source mobile platform consisting of an OS, web browser and key applications. Different companies have different contributions to make and roles to play. For instance, the software companies like Google are developing the requisite software, the hardware companies the chipsets and the mobile companies are ensuring compatible handsets for Android.

14) Why an open source platform would be beneficial to consumers?
Open source platform will ensure cheaper mobile handsets and services coupled with richer user experience in the form of a friendlier interface, cool applications and an enhanced browsing experience.

15) Why is open platform good for the mobile operators?
An open platform would foster faster innovation, multiple software versions, better customization options, lower costs, which would bring down the overall service and handset costs while boosting sales.

16) Why is open platform good for developers?
Developers will be able innovate rapidly because they will have comprehensive API access to handset capabilities that are web-ready. They will experience increased productivity because they will have comprehensive and easy-to-use developer tools. And because open source offers a deeper understanding of the underlying mobile platform, they can better optimise their applications. Finally, the distribution and commercialisation of mobile apps will be less expensive and easier.

17) What is the Android G1 Phone?
The Android T-Mobile G1 phone is the world's first Android-powered mobile phone developed by HTC and T-Mobile.

18) Which Programming language is supported by Android?
Android uses the Java programming language and Eclipse IDE.

19) Are the Android apps first scrutinized by Google?
No the Android applications can be directly posted on the Android Market once you are
registered as a developer after paying the $25 application fee.

20) How much revenue share does the developer get?
The developer gets 70% revenue generated from each Android application purchase while the rest is used for settlement charges. Google doesn't take a dime out of this.
Which is the Virtual Machine used to run the Android apps? The VM used is called Dalvik, so named after the ancestral roots of its creator, as the story goes.

More Android Interview Questions : Click Here

No comments: