{"id":48145,"date":"2018-01-31T06:03:06","date_gmt":"2018-01-31T00:33:06","guid":{"rendered":"http:\/\/blog.odango.com\/?p=48145"},"modified":"2023-02-04T09:34:27","modified_gmt":"2023-02-04T04:04:27","slug":"android-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/","title":{"rendered":"Android Interview Questions and Answers"},"content":{"rendered":"\n[et_pb_section bb_built=&#8221;1&#8243; next_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_post_title _builder_version=&#8221;3.0.106&#8243; title=&#8221;on&#8221; meta=&#8221;off&#8221; author=&#8221;on&#8221; date=&#8221;on&#8221; categories=&#8221;on&#8221; comments=&#8221;on&#8221; featured_image=&#8221;off&#8221; featured_placement=&#8221;below&#8221; text_color=&#8221;dark&#8221; text_background=&#8221;off&#8221; title_font=&#8221;Titillium Web||||||||&#8221; title_font_size=&#8221;47&#8243; title_font_size_tablet=&#8221;40&#8243; title_font_size_phone=&#8221;35&#8243; title_font_size_last_edited=&#8221;on|desktop&#8221; title_text_color=&#8221;rgba(0,0,0,0.8)&#8221; title_text_align=&#8221;left&#8221; text_shadow_horizontal_length=&#8221;0.08em&#8221; text_shadow_vertical_length=&#8221;0.08em&#8221; text_shadow_blur_strength=&#8221;0.08em&#8221; title_text_shadow_horizontal_length=&#8221;0.08em&#8221; title_text_shadow_vertical_length=&#8221;0.08em&#8221; custom_margin=&#8221;|||10%&#8221; \/][\/et_pb_column][\/et_pb_row][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_text _builder_version=&#8221;3.0.106&#8243; background_layout=&#8221;light&#8221; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|desktop&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221; text_line_height_last_edited=&#8221;off|phone&#8221; max_width_last_edited=&#8221;off|phone&#8221; custom_margin_last_edited=&#8221;off|desktop&#8221;]\r\n\r\n<strong>1) What language does Android support for application development?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Android applications are written using the Java programming language.\r\n\r\n<hr \/>\r\n\r\n<strong>2) Describe a real time scenario where android can be used?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Imagine a situation that you are in a country where no one understands the language you speak and you cannot read or write. However, you have mobile phone with you.\r\n\r\nWith 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.\r\n\r\n<hr \/>\r\n\r\n<strong>3) What are the advantages of Android?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>The following are the advantages of Android:\r\n<ol>\r\n \t<li>The customer will be benefited from wide range of mobile\u00a0applications\u00a0to choose, since the monopoly of wireless carriers like AT&amp;T and Orange will be broken by Google Android.<\/li>\r\n \t<li>Features like weather details, live RSS feeds, opening screen, and icon on the opening screen can be customized.<\/li>\r\n \t<li>Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.<\/li>\r\n \t<li>Components can be reused and replaced by the application framework.<\/li>\r\n \t<li>Optimized DVM for mobile devices.<\/li>\r\n \t<li>SQLite enables to store the data in a structured manner.<\/li>\r\n \t<li>Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies.<\/li>\r\n \t<li>The development is a combination of a device emulator, debugging tools, memory profiling and plug-in for Eclipse IDE.<\/li>\r\n<\/ol>\r\n\r\n<hr \/>\r\n\r\n<strong>4) Describe the APK format.<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>The APK file is compressed the AndroidManifest.xml file,\u00a0application\u00a0code (.dex files), resource files, and other files. A project is compiled into a single .apk file.\r\n\r\n<hr \/>\r\n\r\n<strong>5) What is an action?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>A description of something that an Intent sender desires.\r\n\r\n<hr \/>\r\n\r\n<strong>6) What is activity?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0A single screen in an application, with supporting Java code.\r\n\r\n<hr \/>\r\n\r\n<strong>7) What is intent?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0A class (Intent) describes what a caller desires to do. The caller sends this intent to Android&#8217;s intent resolver, which finds the most suitable activity for the intent. E.g. opening a PDF file is intent and the Adobe Reader is the suitable activity for this intent.\r\n\r\n<hr \/>\r\n\r\n<strong>8) What is a resource?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0A user-supplied XML, bitmap, or other files, injected into the application build process, which can later be loaded from code.\r\n\r\n<hr \/>\r\n\r\n<strong>9) What&#8217;s the difference between file, class and activity in android?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>\r\n\r\n<em>File<\/em>\u00a0&#8211; It is a block of arbitrary information, or resource for storing information. It can be of any type.\r\n\r\n<em>Class\u00a0<\/em>\u2013 It is a compiled form of .Java file. Android finally used this .class files to produce an executable apk.\r\n\r\n<em>Activity<\/em>\u00a0&#8211; 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.\r\n\r\n<hr \/>\r\n\r\n<strong>10) Can an\u00a0application\u00a0be started on power-up?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Yes.\r\n\r\n<hr \/>\r\n\r\n<strong>11) Does Android support the Bluetooth serial port profile?<\/strong>\r\n\r\n<strong>\u00a0Ans:\u00a0<\/strong>Yes.\r\n\r\n<hr \/>\r\n\r\n<strong>12) How will you record a phone call in Android? How to get a handle on Audio Stream for a call in Android?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoing calls.\r\n\r\n<hr \/>\r\n\r\n<strong>13) What is a Sticky Intent?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>SendStickyBroadcast() performs a sendBroadcast (Intent) that is &#8220;sticky,&#8221; 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).\r\n\r\nOne example of a sticky broadcast sent via the operating system is ACTION_BATTERY_CHANGED. When you call registerReceiver() for that action &#8212; even with a null BroadcastReceiver &#8212; 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.\r\n\r\n<hr \/>\r\n\r\n<strong>14) How to select more than one option from\u00a0list in\u00a0android xml file?\u00a0Give an example.\r\nAns:\u00a0<\/strong>Specify android id, layout height and width as depicted in the following example.\r\n\r\n<hr \/>\r\n\r\n<strong>15) What is Android?\r\nAns:\u00a0<\/strong>Android is a stack of software for mobile devices which includes an 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.\r\n\r\n<hr \/>\r\n\r\n<strong>16) What is an Activity?\r\nAns:<\/strong>\u00a0A single screen in an application, with supporting Java code.\r\n\r\n<hr \/>\r\n\r\n<strong>17) What is an Intent?\r\nAns:\u00a0<\/strong>A class (Intent) which describes what a caller desires to do. The caller will send this intent to Android\u2019s 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).\r\n\r\n<hr \/>\r\n\r\n<strong>18) How the nine-patch Image different from a regular bitmap? Alternatively, what is the difference between nine-patch Image vs regular Bitmap Image?\r\nAns:<\/strong>\u00a0It is one of a resizable bitmap resource which is being used as backgrounds or other images on the device. The Nine Patch class allows drawing a bitmap in nine sections.\r\n\r\nThe four corners are unscaled; the middle of the image is scaled in both axes, the four edges are scaled into one axis.\r\n\r\n<hr \/>\r\n\r\n<strong>19) What is a resource?\r\nAns:\u00a0<\/strong>A user defined JSON, XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.\r\n\r\n<hr \/>\r\n\r\n<strong>20) How will you record a phone call in Android? Or How to handle an Audio Stream for a call in Android?\r\nAns:<\/strong>\u00a0Permission.PROCESS_OUTGOING_CALLS: Will allow an application to monitor, modify, or abort outgoing calls. So using that permission we can monitor the Phone calls.\r\n\r\n<hr \/>\r\n\r\n<strong>21) Does Android support the Bluetooth serial port profile?\r\nAns:\u00a0<\/strong>Yes.\r\n\r\n<hr \/>\r\n\r\n<strong>22) Can an application be started on powerup?\r\nAns:<\/strong>\u00a0Yes.\r\n\r\n<hr \/>\r\n\r\n<strong>23) What is the APK format?\r\nAns:\u00a0<\/strong>The APK file is compressed AndroidManifest.xml file with extension .apk. It also includes the application code (.dex files), resource files, and other files which are compressed into a single .apk file.\r\n\r\n<hr \/>\r\n\r\n<strong>24) How to Translate in Android?\r\nAns:\u00a0<\/strong>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.\r\n\r\n<hr \/>\r\n\r\n<strong>25) Describe Briefly the Android Application Architecture\r\nAns:<\/strong>\u00a0Android Application Architecture has the following components:\r\n<ul>\r\n \t<li>\u00a0Services like Network Operation<\/li>\r\n<\/ul>\r\nIntent \u2013 To perform inter-communication between activities or services\r\n<ul>\r\n \t<li>\u00a0Resource Externalization \u2013 such as strings and graphics<\/li>\r\n<\/ul>\r\nNotification signaling users \u2013 light, sound, icon, notification, dialog etc.\r\n<ul>\r\n \t<li>Content Providers \u2013 They share data between applications<\/li>\r\n<\/ul>\r\n\r\n<hr \/>\r\n\r\n<strong>26) What is needed to make a multiple choice list with a custom view for each row?\r\nAns:<\/strong>\u00a0Multiple choice list can be viewed by making the CheckBox android: id value be \u201c@android:id \/text1\u2033. That is the ID used by Android for the CheckedTextView in simple_list_item_multiple_choice.\r\n\r\n<hr \/>\r\n\r\n<strong>27) What dialog boxes are supported in android?Android supports 4 dialog boxes:<\/strong>\r\n\r\n<strong>Ans:<\/strong>\r\n<ol>\r\n \t<li>\u00a0\u00a0<em>AlertDialog:\u00a0<\/em>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.<\/li>\r\n \t<li>\u00a0<em>ProgressDialog:<\/em>\u00a0This dialog box displays a progress wheel or a progress bar. It is an extension of AlertDialog and supports adding buttons.<\/li>\r\n \t<li><em>DatePickerDialog:<\/em>\u00a0This dialog box is used for selecting a date by the user.<\/li>\r\n \t<li><em>TimePickerDialog:<\/em>\u00a0This dialog box is used for selecting time by the user.<\/li>\r\n<\/ol>\r\n\r\n<hr \/>\r\n\r\n<strong>28) Why to use Android?\r\nAns:<\/strong>\r\n\r\nAndroid is useful because:\r\n\u2022\u00a0\u00a0 \u00a0It is simple and powerful SDK\r\n\u2022\u00a0\u00a0 \u00a0Licensing, Distribution or Development fee is not required\r\n\u2022\u00a0\u00a0 \u00a0Easy to Import third party Java library\r\n\u2022\u00a0\u00a0 \u00a0Supporting platforms are \u2013 Linux, Mac Os, Windows\r\n\r\n<hr \/>\r\n\r\n<strong>29) On which virtual machine Android runs?\r\nAns:<\/strong>\u00a0Dalvik virtual machine\r\n\r\n<hr \/>\r\n\r\n<strong>30) What is the latest version in android?\r\nAns:\u00a0<\/strong>Android 4.2\r\n\r\n<hr \/>\r\n\r\n<strong>31) Give the new Android platform for mobile phones?\r\nAns:<\/strong>\r\n\r\nAndroid\r\n\u2022\u00a0\u00a0 \u00a04.2 \u2013 jelly bean\r\n\u2022\u00a0\u00a0 \u00a04.1- Ice-cream Sandwich\r\n\u2022\u00a0\u00a0 \u00a03. X.X &#8211; Honeycomb\r\n\u2022\u00a0\u00a0 \u00a02.3. X &#8211; Gingerbread\r\n\u2022\u00a0\u00a0 \u00a02.2 &#8211; Froyo\r\n\u2022\u00a0\u00a0 \u00a0 2.0\/2.1 &#8211; \u00c9clair\r\n\u2022\u00a0\u00a0 \u00a0 1.6 &#8211; Donut\r\n\u2022\u00a0\u00a0 \u00a0 1.5 \u2013 Cupcake\r\n\r\n<hr \/>\r\n\r\n<strong>32) Give the languages that are supported by Android operating system for developing applications?\r\nAns:<\/strong>\u00a0It supports all the languages that are written using java code.\r\n\r\n<hr \/>\r\n\r\n<strong>33) In what ways data can be stored in Android?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>\r\n\r\n\u2022 Internal storage\r\n\u2022 Network connection\r\n\u2022 Shared preferences\r\n\u2022 SQLite database\r\n\u2022 External storage\r\n\r\n<hr \/>\r\n\r\n<strong>34) What are user interface types?\r\nAns:<\/strong>\r\n\r\n\u2022 Notifications\r\n\u2022 Views\r\n\r\n<hr \/>\r\n\r\n<strong>35) Give notification types in Android?\r\nAns:<\/strong>\r\n\r\n\u2022 Dialog notification\r\n\u2022 Status bar notification\r\n\u2022 Tost notification\r\n\r\n<hr \/>\r\n\r\n<strong>36) What is a Sticky Intent?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>sendStickyBroadcast() performs as sendBroadcast (Intent) that is \u201csticky,\u201d 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).\r\nOne example of a sticky broadcast sent via the operating system is ACTION_BATTERY_CHANGED. When you call registerReceiver() for that action \u2014 even with a null BroadcastReceiver \u2014 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.\r\n\r\n<hr \/>\r\n\r\n<strong>37) What is the Android Open Source Project?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>We use the phrase \u201cAndroid Open Source Project\u201d or \u201cAOSP\u201d to refer to the people, the processes, and the source code that make up Android.\r\nThe people oversee the project and develop the actual source code. The processes refer to the tools and procedures we use to manage the development of the software. The net result is the source code that you can use to build cell phone and other devices.\r\n\r\n<hr \/>\r\n\r\n<strong>38) Why did we open the Android source code?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>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\u2019s benefit.\r\nYou can find more information on this topic at our Project Philosophy page.\r\n\r\n<hr \/>\r\n\r\n<strong>39) What kind of open-source project is Android?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Google oversees the development of the core Android open-source platform, and works to create robust developer and user communities. For the most part the Android source code is licensed under the permissive Apache Software License 2.0, rather than a \u201ccopyleft\u201d license. The main reason for this is because our most important goal is widespread adoption of the software, and we believe that the ASL2.0 license best achieves that goal.\r\nYou can find more information on this topic at our Project Philosophy and Licensing pages.\r\n\r\n<hr \/>\r\n\r\n<strong>40) Why is Google in charge of Android?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Launching a software platform is complex. Openness is vital to the long-term success of a platform, since openness is required to attract investment from developers and ensure a level playing field. However, the platform itself must also be a compelling product to end users.\r\nThat\u2019s why Google has committed the professional engineering resources necessary to ensure that Android is a fully competitive software platform. Google treats the Android project as a full-scale product development operation, and strikes the business deals necessary to make sure that great devices running Android actually make it to market.\r\n\r\n<hr \/>\r\n\r\n<strong>41) By making sure that Android is a success with end users, we help ensure the vitality of Android as a platform, and as an open-source project. After all, who wants the source code to an unsuccessful product?\r\nAns:<\/strong>\u00a0Google\u2019s goal is to ensure a successful ecosystem around Android, but no one is required to participate, of course. We opened the Android source code so anyone can modify and distribute the software to meet their own needs.\r\n\r\n<hr \/>\r\n\r\n<strong>42) What is Google\u2019s overall strategy for Android product development?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0We focus on releasing great devices into a competitive marketplace, and then incorporate the innovations and enhancements we made into the core platform, as the next version.\r\nIn practice, this means that the Android engineering team typically focuses on a small number of \u201cflagship\u201d devices, and develops the next version of the Android software to support those product launches. These flagship devices absorb much of the product risk and blaze a trail for the broad OEM community, who follow up with many more devices that take advantage of the new features. In this way, we make sure that the Android platform evolves according to the actual needs of real-world devices.\r\n\r\n<hr \/>\r\n\r\n<strong>43) How is the Android software developed?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Each platform version of Android (such as 1.5, 1.6, and so on) has a corresponding branch in the open-source tree. At any given moment, the most recent such branch will be considered the \u201ccurrent stable\u201d branch version. This current stable branch is the one that manufacturers port to their devices. This branch is kept suitable for release at all times.\r\nSimultaneously, there is also a \u201ccurrent experimental\u201d branch, which is where speculative contributions, such as large next-generation features, are developed. Bug fixes and other contributions can be included in the current stable branch from the experimental branch as appropriate.\r\nFinally, Google works on the next version of the Android platform in tandem with developing a flagship device. This branch pulls in changes from the experimental and stable branches as appropriate.\r\nYou can find more information on this topic at our Branches and Releases.\r\n\r\n<hr \/>\r\n\r\n<strong>44) How Can we \u00a0write code for Android using C\/C++?\r\nAns:<\/strong>\u00a0Yes, but need to use NDK\r\nAndroid 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.\r\nEvery 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 \u201cdx\u201d tool.\r\nAndroid only supports applications written using the Java programming language at this time.\r\n\r\n<hr \/>\r\n\r\n<strong>45) What is the file features used in android?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Android is rich in file features and it provides lots of variations in them as well. The file features are as follows:\r\n<em>Intent filters:<\/em>\u00a0Includes bundle of information which describes a desired action.\r\n\r\n<em>Icons and Labels:<\/em>\u00a0Includes information for small icon and a text label that can be displayed to users. These are set for an intent filter and are used to represent a component which fulfills the function advertised by the filter.\r\n\r\n<em>Permissions:<\/em>\u00a0It is a restriction or limitation access to a part of code or data on the device. It is given as:-android.permission.CALL_EMERGENCY_NUMBERS\r\n\r\n<em>Libraries:\u00a0<\/em>It includes the basic packages for building and developing applications\r\n\r\n<hr \/>\r\n\r\n<strong>46) What is Android Runtime?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Android includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.\r\nEvery 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 \u201cdx\u201d tool.\r\n\r\n<hr \/>\r\n\r\n<strong>47) Describe of Android Market in compatibility?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Devices that are Android compatible may seek to license the Android Market client software. This allows them to become part of the Android app ecosystem, by allowing users to download developers\u2019 apps from a catalog shared by all compatible devices. This option isn\u2019t available to devices that aren\u2019t compatible.\r\n\r\n<hr \/>\r\n\r\n<strong>48) What kinds of devices can be Android compatible?\r\nAns:\u00a0<\/strong>The Android software can be ported to a lot of different kinds of devices, including some on which third-party apps won\u2019t run properly. The Android Compatibility Definition Document (CDD) spells out the specific device configurations that will be considered compatible.\r\nFor example, though the Android source code could be ported to run on a phone that doesn\u2019t have a camera, the CDD requires that in order to be compatible, all phones must have a camera. This allows developers to rely on a consistent set of capabilities when writing their apps.\r\nThe CDD will evolve over time to reflect market realities. For instance, the 1.6 CDD only allows cell phones, but the 2.1 CDD allows devices to omit telephony hardware, allowing for non-phone devices such as tablet-style music players to be compatible. As we make these changes, we will also augment Android Market to allow developers to retain control over where their apps are available. To continue the telephony example, an app that manages SMS text messageswould not be useful on a media player, so Android Market allows the developer to restrict that app exclusively to phone devices.\r\n\r\n<hr \/>\r\n\r\n<strong>49) If my device is compatible, does it automatically have access to Android Market and branding?\r\nAns:\u00a0<\/strong>Android Market is a service operated by Google. Achieving compatibility is a prerequisite for obtaining access to the Android Market software and branding. Device manufacturers should contact Google to obtain access to Android Market.\r\nFeatures of Android\r\n<ol>\r\n \t<li>Application framework enabling reuse and replacement of components<\/li>\r\n \t<li>Dalvik virtual machine optimized for mobile devices<\/li>\r\n \t<li>Integrated browser based on the open source WebKit engine<\/li>\r\n \t<li>Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)<\/li>\r\n \t<li>SQLite for structured data storage<\/li>\r\n \t<li>Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)<\/li>\r\n \t<li>\u00a0GSM Telephony (hardware dependent)<\/li>\r\n \t<li>\u00a0Bluetooth, EDGE, 3G, and WiFi (hardware dependent)<\/li>\r\n \t<li>Camera, GPS, compass, and accelerometer (hardware dependent)<\/li>\r\n \t<li>Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE.<\/li>\r\n<\/ol>\r\n\r\n<hr \/>\r\n\r\n<strong>50) How long does compatibility take?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>The process is automated. The Compatibility Test Suite generates a report that can be provided to Google to verify compatibility. Eventually we intend to provide self-service tools to upload these reports to a public database.\r\n\r\n<hr \/>\r\n\r\n<strong>51) Who determines what will be part of the compatibility definition?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Since Google is responsible for the overall direction of Android as a platform and product, Google maintains the Compatibility Definition Document for each release. We draft the CDD for a new Android version in consultation with a number of OEMs, who provide input on its contents.\r\n\r\n<hr \/>\r\n\r\n<strong>52)\u00a0 What is an action?\r\nAns:<\/strong>\u00a0A description of something that an Intent sender desires.\r\n\r\n<hr \/>\r\n\r\n<strong>53)\u00a0What is an activity?\r\nAns:<\/strong>\u00a0A single screen in an application, with supporting Java code.\r\nAn activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView(View).\r\n\r\n<hr \/>\r\n\r\n<strong>54) What is a service?\r\nAns:<\/strong>\u00a0A Service is an application component representing either an application\u2019s desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.\r\nEach service class must have a corresponding declaration in its package\u2019s AndroidManifest.xml. Services can be started withContext.startService() and Context.bindService().\r\nFor 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.\r\nEach service extends the Service base class.\r\n\r\n<hr \/>\r\n\r\n<strong>55) What is AVD?\r\nAns:<\/strong>\u00a0An Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator.\r\n\r\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; prev_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_team_member _builder_version=&#8221;3.0.106&#8243; name=&#8221;Naveen E&#8221; position=&#8221;Author&#8221; facebook_url=&#8221;&#8221; twitter_url=&#8221;&#8221; google_url=&#8221;&#8221; linkedin_url=&#8221;&#8221; image_url=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/1234.gif&#8221; background_layout=&#8221;light&#8221; header_font=&#8221;Titillium Web|700|||||||&#8221; body_font=&#8221;Titillium Web||||||||&#8221; body_font_size=&#8221;16&#8243; body_font_size_last_edited=&#8221;on|phone&#8221;]\r\n\r\nHola peeps! Meet an adventure maniac, seeking life in every moment, interacting and writing at Asha24.\r\n\r\n[\/et_pb_team_member][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":48146,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[57],"tags":[58],"class_list":["post-48145","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interview-questions","tag-interview-questions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Android Interview Questions and Answers - Asha24 Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android Interview Questions and Answers - Asha24 Blog\" \/>\n<meta property=\"og:url\" content=\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/\" \/>\n<meta property=\"og:site_name\" content=\"Asha24 Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-31T00:33:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-04T04:04:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"690\" \/>\n\t<meta property=\"og:image:height\" content=\"459\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mahesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/asha24.net\/blog\/#website\",\"url\":\"https:\/\/asha24.net\/blog\/\",\"name\":\"Asha24 Blog\",\"description\":\"Dedication Towards Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/asha24.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg\",\"contentUrl\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg\",\"width\":690,\"height\":459},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#webpage\",\"url\":\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/\",\"name\":\"Android Interview Questions and Answers - Asha24 Blog\",\"isPartOf\":{\"@id\":\"https:\/\/asha24.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#primaryimage\"},\"datePublished\":\"2018-01-31T00:33:06+00:00\",\"dateModified\":\"2023-02-04T04:04:27+00:00\",\"author\":{\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\"},\"breadcrumb\":{\"@id\":\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/asha24.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android Interview Questions and Answers\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\",\"name\":\"Mahesh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"caption\":\"Mahesh\"},\"url\":\"https:\/\/asha24.net\/blog\/author\/mahesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android Interview Questions and Answers - Asha24 Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/","og_locale":"en_US","og_type":"article","og_title":"Android Interview Questions and Answers - Asha24 Blog","og_url":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/","og_site_name":"Asha24 Blog","article_published_time":"2018-01-31T00:33:06+00:00","article_modified_time":"2023-02-04T04:04:27+00:00","og_image":[{"width":690,"height":459,"url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg","path":"\/home\/reviews981\/public_html\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg","size":"full","id":48146,"alt":"","pixels":316710,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mahesh","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/asha24.net\/blog\/#website","url":"https:\/\/asha24.net\/blog\/","name":"Asha24 Blog","description":"Dedication Towards Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/asha24.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#primaryimage","inLanguage":"en-US","url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg","contentUrl":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/android-interview-questions-and-answers-2.jpg","width":690,"height":459},{"@type":"WebPage","@id":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#webpage","url":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/","name":"Android Interview Questions and Answers - Asha24 Blog","isPartOf":{"@id":"https:\/\/asha24.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#primaryimage"},"datePublished":"2018-01-31T00:33:06+00:00","dateModified":"2023-02-04T04:04:27+00:00","author":{"@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759"},"breadcrumb":{"@id":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/asha24.net\/blog\/android-interview-questions-and-answers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/asha24.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Android Interview Questions and Answers"}]},{"@type":"Person","@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759","name":"Mahesh","image":{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","caption":"Mahesh"},"url":"https:\/\/asha24.net\/blog\/author\/mahesh\/"}]}},"_links":{"self":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/comments?post=48145"}],"version-history":[{"count":5,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48145\/revisions"}],"predecessor-version":[{"id":52200,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48145\/revisions\/52200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media\/48146"}],"wp:attachment":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media?parent=48145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/categories?post=48145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/tags?post=48145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}