Header Ads

Best Android Interview Questions and Answers | Job Interview Tips

AJIRALEO TANZANIA
AJIRALEO TANZANIA
Best Android Interview Questions and Answers | Job Interview Tips
  1. Question 1. What Is Android?
    Answer :
    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 transforms into .dex format files.
  2. Question 2. Explain About The Exceptions Of Android?
    Answer :
    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.
  3. Question 3. Why To Use Android?
    Answer :
    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
  4. Question 4. Describe Android Application Architecture?
    Answer :
    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
  5. Question 5. What Are The Features Of Android?
    Answer :
    *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.
  6. Question 6. Are The Android Releases Available In A Rom?
    Answer :
    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.
  7. Question 7. Can You Play Android 2.1 Games On Android 2.2?
    Answer :
    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.
  8. Question 8. What Is Android Runtime?
    Answer :
    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 transformed into the .dex format by the included ?dx? tool.
  9. Question 9. Creating An Android Application Using The Eclipse Plugin?
    Answer :
    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.
  10. Question 10. Can I Write Code For Android Using C/c++?
    Answer :
    Android applications are written using the Java programming language.Android includes a set of core libraries that provides most of the functionality available in the core libraries 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 transformed into the .dex format by the included ?dx? tool.Android only supports applications written using the Java programming language at this time.
  11. Question 11. What Is The Ttl (time To Live)? Why Is It Required?
    Answer :
    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 transmitted 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 transmitting 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
  12. Question 12. How Is Nine-patch Image Different From A Regular Bitmap?
    Answer :
    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.
  13. Question 13. Explain Ip Datagram, Fragmentation And Mtu ?
    Answer :
    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 Transmission 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 transmitted independently from source. When received by destination they are reassembled.
  14. Question 14. What Is Sticky Intent?
    Answer :
    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.
  15. Question 15. User-generated Content: Report Abuse Which Is The Better Phone - The Iphone Or The Droid?
    Answer :
    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,000. 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"
  16. Question 16. How Long Does It Take To Build An App?
    Answer :
    Depending on the complexity and how quickly you respond to us you could have an app built in about a month.
  17. Question 17. How Much Does Mobile Application Development Cost? That Is A Bit Like Asking: How Much Does A Truck Cost?
    Answer :
    The answer is that it depends on the truck. Your needs are unique and your app needs to meet only those needs. A small Toyota will cost a lot less than a huge semi tractor trailer. A tractor trailer is great if you want to haul goods across the country but dont try to take it on a Saturday night date. We help you to avoid creating too much - or too little app. This keeps costs low.
    Having us create a custom smartphone app is surprisingly affordable. Many businesses find their app costs less than even a small radio or newspaper campaign. Unlike a radio campaign, the app?s usefulness does not end with the last commercial. Once it is created an app can add to your bottom line for a very long time. Our goal is to connect your audience with your cash register no matter where they are. With a smartphone app you give your customers access to you at the exact moment their buying decision is the strongest.
  18. Question 18. Describe The Apk Format.
    Answer :
    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.
  19. Question 19. Is Sim Pin Code Working?
    Answer :
    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)
  20. Question 20. What Is The Future Scope Of Mobile Application Developers?
    Answer :
    Future of the mobile application development is bright
  21. Question 21. What Is The Mobile Application Development All About?
    Answer :
    In the last two years, a lot of innovation has come in the mobile computing world. Apple has launched very innovative mobile phone, iphone and ipad along with app store. Google launched Android in Nov 2007. Blackberry released SDK and app world. Microsoft has come up with phone 7 framework. Almost every type of mobile can be programmed using J2ME. Making applications for all these devices is Mobile application development.
  22. Question 22. What Is The Demand Of Mobile Application Developers?
    Answer :
    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.
  23. Question 23. What Is The Risk In Blocking The Main Thread When Performing A Lengthyoperation Such As Web Access Or Heavy Computation?
    Answer :
    Application_Not_Responding exception will be thrown which will crash and restart the application.
  24. Question 24. What Is A Dalvik ?
    Answer :
    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 transformed 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.
  25. Question 25. What Features Are In A Release?
    Answer :
    Generally, it's very difficult to detail them, unless there is a significant new feature (in which case, that will be very well advertised!). Usually it's minor speed improvements, bug fixes etc... and sometimes, new bugs are introduced (so bear that in mind)
  26. Question 26. When Will It Be Available In A Rom?
    Answer :
    No time soon. Folks are working on it, but you'll need a lot of patience before it (if ever) arrives.
  27. Question 27. I Keep Hearing 'popping/clicking' Sounds From The Speaker?
    Answer :
    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.
  28. Question 28. How Much Revenue Share Does The Developer Get?
    Answer :
    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.
  29. Question 29. Explain Seapine Software?
    Answer :
    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.
  30. Question 30. Why Is List View Not Recommended To Have Active Components?
    Answer :
    Clicking on the active text box will pop up the software keyboard but this will resize the list, removing focus from the clicked element.
  31. Question 31. Why Is Open Platform Good For The Mobile Operators?
    Answer :
    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.
  32. Question 32. Describe A Real Time Scenario Where Android Can Be Used?
    Answer :
    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 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.
  33. Question 33. Why Is Open Platform Good For Developers?
    Answer :
    Developers will be able innovate rapidly because they will have comprehensive API access tohandset 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.
  34. Question 34. How Will You Record A Phone Call In Android? How To Get A Handle On Audiostream For A Call In Android?
    Answer :
    Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoingcalls.
  35. Question 35. What Is An Ddms?
    Answer :
    Dalvik Debug Monitor Service, a GUI debugging application shipped with the SDK. It provides screen capture, log dump, and process examination capabilities.
  36. Question 36. What Are The Advantages Of Android?
    Answer :
    The following are the advantages of Android:
    * The customer will be benefited from wide range of mobile applications to choose, since themonopoly 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.
  37. Question 37. Does Android Support The Bluetooth Serial Port Profile?
    Answer :
    Yes.
  38. Question 38. What Is The Android G1 Phone?
    Answer :
    The Android T-Mobile G1 phone is the world's first Android-powered mobile phone developed by HTC and T-Mobile.
  39. Question 39. Which Is The Virtual Machine Used To Run The Android Apps?
    Answer :
    The VM used is called Dalvik, so named after the ancestral roots of its creator, as the story goes.
  40. Question 40. Are The Android Apps First Scrutinised By Google?
    Answer :
    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.
  41. Question 41. What Is An Intent Receiver?
    Answer :
    An application class that listens for messages broadcast by calling Context.broadcastIntent
  42. Question 42. What's The Difference Between File, Class And Activity In Android?
    Answer :
    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.
  43. Question 43. How To Select More Than One Option From List In Android Xml File? Give An Example.
    Answer :
    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>
  44. Question 44. What Languages Does Android Support For Application Development?
    Answer :
    Android applications are written using the Java programming language.
  45. Question 45. What Are The Dialog Boxes That Are Supported In Android? Explain.
    Answer :
    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.
  46. Question 46. What Virtual Machine Android Runs On?
    Answer :
    Dalvik virtual machine
  47. Question 47. What Are The Differences Between A Domain And A Workgroup?
    Answer :
    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.
  48. Question 48. How To Remove Desktop Icons And Widgets?
    Answer :
    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.
  49. Question 49. What Is .apk Extension?
    Answer :
    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.
  50. Question 50. What Is A Layout Resource?
    Answer :
    An XML file that describes the layout of an Activity screen.
  51. Question 51. What Is A Manifest ?
    Answer :
    An XML file associated with each Application that describes the various activies, intent filters, services, and other items that it exposes.
  52. Question 52. What Is A Theme ?
    Answer :
    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_?).
  53. Question 53. What Is An Uris?
    Answer :
    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.
  54. Question 54. Can An Application Be Started On Powerup?
    Answer :
    Yes.
  55. Question 55. What Is An Action?
    Answer :
    A description of something that an Intent sender desires.
  56. Question 56. What Is Activity?
    Answer :
    A single screen in an application, with supporting Java code.
  57. Question 57. What Is Intent?
    Answer :
    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.
  58. Question 58. What Is A Resource?
    Answer :
    A user-supplied XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.
  59. Question 59. What Is A Sticky Intent?
    Answer :
    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.
  60. Question 60. What Is The Open Handset Alliance?
    Answer :
    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.
  61. Question 61. What Innovations The Oha Members Strive To Achieve?
    Answer :
    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.
  62. Question 62. Why An Open Source Platform Would Be Beneficial To Consumers?
    Answer :
    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.
  63. Question 63. How Will Apps Change With Android 2.2?
    Answer :
    The answer is that with Froyo, Google's giving us a bunch of new ways to take advantage of apps from the Android Market and beyond. The highlights:SD card installations:  you'll finally be able to install apps on your SD card, smashing the space limitations of Android versions past. You'll be able to select where you want each app to be installed - SD card or internal storage - and even toggle it back and forth with a couple of clicks later.


No comments: