Top 50 Android Interview Questions You Must Prepare 02.Mar.2024

No time soon. Folks are working on it, but you'll need a lot of patience before it (if ever) arrives.

Android Application Architecture has the following components:
* Services - like Network Operation
* Intent - To perform inter-communication between activities or services
* Resource Externalization - such as strings and graphics
* Notification signaling users - light, sound, icon, notification, dialog etc.
* Content Providers - They share data between applications

A description of something that an Intent sender desires.

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.

Seapine's software development and testing tools streamline your development process, saving you significant time and money. Enjoy feature-rich tools that are flexible enough to work in any software development environment. With Seapine integrated tools, every step in the developmentprocess feeds critical information into the next step, letting you focus on developing high quality software in less time.

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.

Application_Not_Responding exception will be thrown which will crash and restart the application.

Dalvik Debug Monitor Service, a GUI debugging application shipped with the SDK. It provides screen capture, log dump, and process examination capabilities.

An open platform would foster faster innovation, multiple software versions, better customisation options, lower costs, which would bring down the overall service and handset costs while boostingsales.

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.

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.

Android uses URI strings both for requesting data (e.g., a list of contacts) and for requesting actions (e.g., opening a Web page in a browser). Both are valid URI strings, but have different values. All requests for data must start with the string ?content://?. Action strings are valid URIs that can be handled appropriately by applications on the device; for example, a URI starting with ?http://? will be handled by the browser.

A user-supplied XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.

This is a known annoyance on some devices, believed to be related to power management switching the speaker on and off (not confirmed), it actually seems worse in silent mode (ironically). If you experience this, you're not alone... most users do. When a fix is ready, it will be announced here.

TTL is a value in data packet of Internet Protocol. It communicates to the network router whether or not the packet should be in the network for too long or discarded. Usually, data packets might not be trmitted to their intended destination within a stipulated period of time. The TTL value is set by a system default value which is an 8-bit binary digit field in the header of the packet. The purpose of TTL is, it would specify certain time limit in seconds, for trmitting the packet header. When the time is exhausted, the packet would be discarded. Each router receives the subtracts count, when the packet is discarded, and when it becomes zero, the router detects the discardedpackets and sends a message, Internet Control Message Protocol message back to the originating host.

TTL(time to live) apart from determining the life time of a packet in a network also helps in avoiding the wastage of bandwith

A single screen in an application, with supporting Java code.

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.

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.

Clicking on the active text box will pop up the software keyboard but this will resize the list, removing focus from the clicked element.

IP datagram can be used to describe a portion of IP data. Each IP datagram has set of fields arranged in an order. The order is specific which helps to decode and read the stream easily. IP datagram has fields like Version, header length, Type of service, Total length, checksum, flag, protocol, Time to live, Identification, source and destination ip address, padding, options and payload.

MTU:- Maximum Trmission Unit is the size of the largest packet that a communication protocol can pass. The size can be fixed by some standard or decided at the time ofconnection

Fragmentation is a process of breaking the IP packets into smaller pieces. Fragmentation is needed when the datagram is larger than the MTU. Each fragment becomes a datagram in itself and trmitted independently from source. When received by destination they are reassembled.

The VM used is called Dalvik, so named after the ancestral roots of its creator, as the story goes.

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.

The name of Androids virtual machine. The Dalvik VM is an interpreter-only virtual machine that executes files in the Dalvik Executable (.dex) format, a format that is optimized for efficient storage and memory-mappable execution. The virtual machine is register-based, and it can run classes compiled by a Java language compiler that have been trformed into its native format using the included ?dx? tool. The VM runs on top of Posix-compliant operating systems, which it relies on for underlying functionality (such as threading and low level memory management). The Dalvik core class library is intended to provide a familiar development base for those used to programming with Java Standard Edition, but it is geared specifically to the needs of a small mobile device.

The iphone 4 is better than any other phone. for one it is made out of the same material they use in helicopter and train windows.(atleas from what i haerd)another thing is that the iphone has a better app market. with over 300,000 apps it is far better than the droids 70,0@Also it comes with more accesories and has an antenna to provide better signal while the droid doesn't. People say it has a bad connection but i think not since i have already used it. And last but not leats better resolution. it may have a smaller screen but still its graphics are better.so it all depends on you each one has its ups and its downs but i would go with iphone 4 over any phone especially the "all new droid x"

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.

An XML file that describes the layout of an Activity screen.

An XML file associated with each Application that describes the various activies, intent filters, services, and other items that it exposes.

Android includes a set of core libraries that provides most of the functionality available in the corelibraries of the Java programming language. Every Android application runs in its own process, with its own instance of the Dalvik virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently. The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimized for minimal memory footprint. The VM is register-based, and runs classes compiled by a Java language compiler that have been trformed into the .dex format by the included ?dx? tool.

Is there anyway to determine if an Intent passed into a BroadcastReceiver's onReceive is the result of a sticky Boradcast Intent, or if it was just sent.

It's supposed to be working, yes, but if you have ANY troubles please DISABLE SIM PIN in WinMo (SIM PIN works on the SIM, but you need WinMo UI to disable it)

Android applications are written using the Java programming language.

Desktop based IT application is present but the mobile is future. All the applications that were madeto work only on desk top are being ported to mobile. In the coming 10 years, desktops will be replaced completely with mobile, and then all the applications will be designed mainly for mobile. The demand for mobile based trained engineers are increasing every year. Now after the launch of ipad by Apple, it will be even more. Therefore; the gextgen technology will be nothing else than mobile. The demand is expected to grow 70 folds in the coming 4 years.

*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.

Specify android id, layout height and width as depicted in the following example.

  <ListView android:id="@+id/ListView01" 
android:layout_height="wrap_content"
android:layout_width="fill_parent"></ListView>

An application class that listens for messages broadcast by calling Context.broadcastIntent

Android is useful because:
*It is simple and powerful SDK
*Licensing, Distribution or Development fee is not required
*Easy to Import third party Java library
*Supporting platforms are ? Linux, Mac Os, Windows

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.

With a mobile phone with android, the Google trlator trlates the data of one language into another language by using XMPP to trmit 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.

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

Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoingcalls.

A set of properties (text size, background color, and so on) bundled together to define various default display settings. Android provides a few standard themes, listed in R.style (starting with ?Theme_?).

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 initialisation that isn't documented, but is needed before Android can run.

no.as i have a 2.2 android phone, its very hard to find games for it. The 2.2 android will not be able to support that type of game.

Using the Android Eclipse plugin is the fastest and easiest way to start creating a new Androidapplication. The plugin automatically generates the correct project structure for your application, and keeps the resources compiled for you automatically.

It is still a good idea to know what is going on though. Take a look at Overview of an AndroidApplication to understand the basics of how an Android application works.

It is also recommended that you take a look at the ApiDemos application and the other sample applications in the samples/ folder in the SDK.

Finally, a great way to started with Android development in Eclipse is to follow both the Hello Android and Notepad code tutorials. In particular, the start of the Hello Android tutorial is an excellent introduction to creating a new Android application in Eclipse.

File - It is a block of arbitrary information, or resource for storing information. It can be of any type.
Class - Its 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.

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 languages byte code which later trforms into .dex format files.

In a domain, one or more computer can be a server to manage the network. On the other hand in aworkgroup all computers are peers having no control on each other. In a domain, user doesn?t needan account to logon on a specific computer if an account is available on the domain. In a work group user needs to have an account for every computer. In a domain, Computers can be on different local networks. In a work group all computers needs to be a part of the same local network.

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.