Top 50 Android Interview Questions
Q1. When Will It Be Available In A Rom?
No time quickly. Folks are running on it, but you'll want a number of endurance earlier than it (if ever) arrives.
Q2. Describe Android Application Architecture?
Android Application Architecture has the following additives:
* Services - like Network Operation
* Intent - To perform inter-communique between sports or services
* Resource Externalization - including strings and pix
* Notification signaling customers - mild, sound, icon, notification, dialog and many others.
* Content Providers - They percentage records between packages
Q3. What Is An Action?
A description of something that an Intent sender desires.
Q4. What Is .Apk Extension?
The extension for an Android package deal record, which typically incorporates all of the documents related to a unmarried Android utility. The report itself is a compressed collection of an AndroidManifest.Xml file,software code (.Dex documents), resource files, and other documents. A assignment is compiled into a unmarried .Apk report.
Q5. Explain Seapine Software?
Seapine's software improvement and trying out equipment streamline your improvement manner, saving you full-size money and time. Enjoy characteristic-rich gear which might be flexible sufficient to work in any software development environment. With Seapine incorporated gear, every step within the developmentprocess feeds crucial statistics into the subsequent step, letting you attention on developing high first-rate software program in much less time.
Q6. Explain About The Exceptions Of Android?
The following are the exceptions which can be supported by using Android
* InflateException : When an blunders conditions are took place, this exception is thrown
* Surface.OutOfResourceException: When a surface isn't created or resized, this exception is thrown
* SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, while 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.
Q7. What Is The Risk In Blocking The Main Thread When Performing A Lengthyoperation Such As Web Access Or Heavy Computation?
Application_Not_Responding exception could be thrown in an effort to crash and restart the software.
Q8. What Is An Ddms?
Dalvik Debug Monitor Service, a GUI debugging software shipped with the SDK. It offers display screen capture, log dump, and technique examination abilities.
Q9. Why Is Open Platform Good For The Mobile Operators?
An open platform would foster quicker innovation, more than one software versions, better customisation alternatives, decrease charges, which would bring down the overall service and handset charges whilst boostingsales.
Q10. Why An Open Source Platform Would Be Beneficial To Consumers?
Open supply platform will make sure less expensive cell handsets and services coupled with richer user experience inside the form of a friendlier interface, cool programs and an enhanced browsing revel in.
Q11. Describe The Apk Format.
The APK report is compressed the AndroidManifest.Xml report, software code (.Dex files), aid documents, and other documents. A undertaking is compiled into a single .Apk report.
Q12. What Is An Uris?
Android uses URI strings both for requesting records (e.G., a list of contacts) and for soliciting for moves (e.G., establishing a Web web page in a browser). Both are legitimate URI strings, but have distinct values. All requests for data should start with the string ?Content://?. Action strings are valid URIs that may be treated as it should be with the aid of applications at the device; as an example, a URI beginning with ?Http://? Will be dealt with via the browser.
Q13. What Is A Resource?
A person-supplied XML, bitmap, or other file, injected into the software construct manner, which could later be loaded from code.
Q14. I Keep Hearing 'popping/clicking' Sounds From The Speaker?
This is a recognized annoyance on a few devices, believed to be associated with power management switching the speaker on and rancid (not confirmed), it absolutely seems worse in silent mode (mockingly). If you revel in this, you're now not on my own... Most customers do. When a fix is ready, it'll be announced here.
Q15. What Is The Ttl (time To Live)? Why Is It Required?
TTL is a value in records packet of Internet Protocol. It communicates to the community router whether or not or no longer the packet ought to be inside the network for too lengthy or discarded. Usually, facts packets may not be trmitted to their supposed vacation spot within a stipulated time period. The TTL price is ready through a machine default value that's an 8-bit binary digit subject within the header of the packet. The purpose of TTL is, it might specify positive time limit in seconds, for trmitting the packet header. When the time is exhausted, the packet would be discarded. Each router gets the subtracts matter, while the packet is discarded, and while it becomes 0, the router detects the discardedpackets and sends a message, Internet Control Message Protocol message returned to the originating host.
TTL(time to live) other than determining the lifestyles time of a packet in a network additionally allows in fending off the wastage of bandwith
Q16. What Is Activity?
A unmarried screen in an application, with helping Java code.
Q17. What Innovations The Oha Members Strive To Achieve?
The OHA contributors have endeavored to broaden Android, the open source cell platform along with an OS, internet browser and key programs. Different groups have one of a kind contributions to make and roles to play. For example, the software businesses like Google are developing the considered necessary software, the hardware companies the chipsets and the mobile companies are ensuring well suited handsets for Android.
Q18. What Is A Sticky Intent?
SendStickyBroadcast() performs a sendBroadcast (Intent) this is "sticky," i.E. The Intent you are sending stays around after the broadcast is entire, in order that others can quickly retrieve that information through the return cost of registerReceiver (BroadcastReceiver, IntentFilter). In all other approaches, this behaves the same as sendBroadcast (Intent).
One instance of a sticky broadcast sent via the running gadget is ACTION_BATTERY_CHANGED. When you name registerReceiver () for that motion -- despite a null BroadcastReceiver -- you get the Intent that was ultimate broadcast for that motion. Hence, you could use this to locate the country of the battery without always registering for all destiny state adjustments inside the battery.
Q19. Can An Application Be Started On Powerup?
Yes.
Q20. Why Is List View Not Recommended To Have Active Components?
Clicking at the lively text field will pop up the software program keyboard but this could resize the listing, removing cognizance from the clicked element.
Q21. Explain Ip Datagram, Fragmentation And Mtu ?
IP datagram can be used to explain a portion of IP information. Each IP datagram has set of fields arranged in an order. The order is precise which allows to decode and examine the stream effortlessly. IP datagram has fields like Version, header period, Type of service, Total duration, checksum, flag, protocol, Time to live, Identification, source and destination ip deal with, padding, options and payload.
MTU:- Maximum Trmission Unit is the size of the biggest packet that a conversation protocol can bypass. The length may be fixed through a few widespread or determined on the time ofconnection
Fragmentation is a manner of breaking the IP packets into smaller portions. Fragmentation is needed whilst the datagram is greater than the MTU. Each fragment will become a datagram in itself and trmitted independently from supply. When obtained through vacation spot they're reassembled.
Q22. Which Is The Virtual Machine Used To Run The Android Apps?
The VM used is referred to as Dalvik, so named after the ancestral roots of its author, because the story is going.
Q23. What Is The Open Handset Alliance?
The OHA is a consortium of 30 era and cell companies that have joined hands to boost up innovation in cell era and on the same time provide the cease customers a better, costeffective and richer mobile experience.
Q24. What Is A Dalvik ?
The call of Androids digital system. The Dalvik VM is an interpreter-best virtual device that executes files in the Dalvik Executable (.Dex) format, a layout this is optimized for efficient storage and reminiscence-mappable execution. The digital machine is register-primarily based, and it may run instructions compiled through a Java language compiler which have been trformed into its local format using the protected ?Dx? Tool. The VM runs on top of Posix-compliant working systems, which it is predicated on for underlying functionality (consisting of threading and occasional stage reminiscence management). The Dalvik center elegance library is intended to offer a familiar improvement base for those used to programming with Java Standard Edition, however it is geared particularly to the desires of a small cell tool.
Q25. User-generated Content: Report Abuse Which Is The Better Phone - The Iphone Or The Droid?
The iphone 4 is higher than every other telephone. For one it's miles made out of the equal material they use in helicopter and educate windows.(atleas from what i haerd)any other issue is that the iphone has a better app market. With over 300,000 apps it's miles far higher than the droids 70,0@Also it comes with greater accesories and has an antenna to provide higher signal whilst the droid would not. People say it has a horrific connection however i assume no longer seeing that i have already used it. And final however now not leats higher resolution. It may have a smaller display however still its portraits are better.So all of it depends on you every one has its united statesand its downs however i might go along with iphone four over any smartphone particularly the "all new droid x"
Q26. How Is Nine-patch Image Different From A Regular Bitmap?
It is a resizable bitmap resource that may be used for backgrounds or other pics at the tool. The NinePatch elegance allows drawing a bitmap in nine sections. The 4 corners are unscaled; the 4 edges are scaled in one axis, and the center is scaled in each axes.
Q27. What Is A Layout Resource?
An XML report that describes the layout of an Activity display.
Q28. What Is A Manifest ?
An XML report related to every Application that describes the numerous activies, motive filters, services, and different gadgets that it exposes.
Q29. What Is Android Runtime?
Android consists of a hard and fast of center libraries that offers maximum of the capability available inside the corelibraries of the Java programming language. Every Android application runs in its own technique, with its very own instance of the Dalvik virtual gadget. Dalvik has been written so that a tool can run more than one VMs correctly. The Dalvik VM executes files inside the Dalvik Executable (.Dex) layout which is optimized for minimum reminiscence footprint. The VM is register-primarily based, and runs training compiled by way of a Java language compiler that have been trformed into the .Dex format by means of the blanketed ?Dx? Tool.
Q30. What Is Sticky Intent?
Is there besides to decide if an Intent passed into a BroadcastReceiver's onReceive is the result of a sticky Boradcast Intent, or if it changed into just despatched.
Q31. Is Sim Pin Code Working?
It's supposed to be operating, yes, however when you have ANY problems please DISABLE SIM PIN in WinMo (SIM PIN works at the SIM, but you need WinMo UI to disable it)
Q32. Does Android Support The Bluetooth Serial Port Profile?
Yes.
Q33. What Languages Does Android Support For Application Development?
Android applications are written using the Java programming language.
Q34. What Is The Demand Of Mobile Application Developers?
Desktop based IT application is present however the cellular is destiny. All the applications that were madeto paintings handiest on table top are being ported to mobile. In the approaching 10 years, computers will be replaced completely with cell, after which all of the packages might be designed mainly for cell. The demand for cellular primarily based skilled engineers are increasing every 12 months. Now after the launch of ipad by using Apple, it'll be even extra. Therefore; the gextgen generation may be not anything else than mobile. The call for is predicted to develop 70 folds inside the coming four years.
Q35. What Are The Features Of Android?
*Components can be reused and replaced through the software framework.
*Optimized DVM for cellular devices
*SQLite allows to store the records in a based manner.
*Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies
*The development is a aggregate of a device emulator, debugging tools, reminiscence profiling and plug-in for Eclipse IDE.
Q36. How To Select More Than One Option From List In Android Xml File? Give An Example.
Specify android identity, layout top and width as depicted inside the following instance.
<ListView android:id="@+id/ListView01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"></ListView>
Q37. What Is An Intent Receiver?
An software class that listens for messages broadcast by calling Context.BroadcastIntent
Q38. What Virtual Machine Android Runs On?
Dalvik virtual system
Q39. Why To Use Android?
Android is useful because:
*It is easy and powerful SDK
*Licensing, Distribution or Development rate isn't required
*Easy to Import 1/3 party Java library
*Supporting systems are ? Linux, Mac Os, Windows
Q40. Describe A Real Time Scenario Where Android Can Be Used?
Imagine a situation that you are in a country wherein no person knows the language you speak and also you cannot study or write. However, you have got cell cellphone with you.
With a cellular telephone with android, the Google trlator trlates the statistics of one language into some other language via the usage of XMPP to trmit information. You can kind the message in English and choose the language which is thought by the citizens of the u . S . A . So one can attain the message to the citizens.
Q41. What Is The Android G1 Phone?
The Android T-Mobile G1 telephone is the sector's first Android-powered mobile smartphone advanced by means of HTC and T-Mobile.
Q42. How Will You Record A Phone Call In Android? How To Get A Handle On Audiostream For A Call In Android?
Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, adjust, or abort outgoingcalls.
Q43. What Is A Theme ?
A set of homes (textual content length, history coloration, and so on) bundled together to outline various default display settings. Android presents a few preferred issues, indexed in R.Style (beginning with ?Theme_?).
Q44. Are The Android Releases Available In A Rom?
No, Android isn't but to be had in a ROM format. Currently Android is hooked up with the aid of the usage of a clean SD Card, and booted from there. It is booted by means of running a special application called 'Haret.Exe' residing on your SD Card in an effort to terminate the Windows kernel and boot into Linux/Android. It cannot effortlessly be run from ROM because a) it is too experimental to threat putting in ROM after which killing a tool and b) WinMo does some hardware initialisation that isn't documented, but is needed earlier than Android can run.
Q45. Can You Play Android 2.1 Games On Android 2.2?
No.As i've a 2.2 android telephone, its very difficult to locate games for it. The 2.2 android will no longer be capable of guide that type of recreation.
Q46. Creating An Android Application Using The Eclipse Plugin?
Using the Android Eclipse plugin is the fastest and simplest way to begin developing a brand new Androidapplication. The plugin automatically generates the precise project shape in your software, and keeps the sources compiled for you robotically.
It remains an excellent idea to recognise what is going on even though. Take a have a look at Overview of an AndroidApplication to recognize the basics of the way an Android utility works.
It is likewise endorsed which you check the ApiDemos utility and the opposite pattern programs in the samples/ folder within the SDK.
Finally, a brilliant way to began with Android improvement in Eclipse is to observe each the Hello Android and Notepad code tutorials. In specific, the start of the Hello Android educational is an high-quality creation to creating a new Android software in Eclipse.
Q47. What's The Difference Between File, Class And Activity In Android?
File - It is a block of arbitrary data, or aid for storing statistics. It can be of any kind.
Class - Its a compiled shape of .Java report . Android ultimately used this .Elegance documents to produce an executable apk.
Activity - An activity is the equivalent of a Frame/Window in GUI toolkits. It isn't a report or a file type it is just a class that may be prolonged in Android for loading UI factors on view.
Q48. What Is Android?
Android is a stack of software program for mobile gadgets which has Operating System, middleware and some key applications. The utility executes inside its very own manner and its very own example of Dalvik Virtual Machine. Many Virtual Machines run effectively by a DVM tool. DVM executes Java languages byte code which later trforms into .Dex layout files.
Q49. What Are The Differences Between A Domain And A Workgroup?
In a site, one or more computer can be a server to control the community. On the alternative hand in aworkgroup all computers are friends having no manage on every different. In a website, user doesn?T needan account to logon on a selected pc if an account is to be had at the area. In a piece group user desires to have an account for each pc. In a website, Computers can be on distinctive neighborhood networks. In a piece institution all computers needs to be a part of the equal neighborhood network.
Q50. How Much Revenue Share Does The Developer Get?
The developer gets 70% revenue generated from each Android application buy at the same time as the rest is used for agreement charges. Google does not take a dime out of this.
