Android Interview Questions and Answers

Share

Read Android Interview Questions and Answers for Interview

Android Interview Questions
Android interview questions and answers most asked at top companies. These Android questions are for both experienced & fresher candidates PDF Download Free.

List of Android Questions

  • What is android?
  • What is activity?
  • What is intent in Android?
  • What is a Sticky Intent?
  • What Programming languages does Android support for application development?
  • What is a resource?
  • How will you record a iphone call in Android? or How to handle on Audio Stream for a call in Android?
  • What’s the difference between class, file and activity in android?
  • Does Android support the Bluetooth serial port profile?
  • Can an application be started on power up?
  • What is APK format
  • How to Translate in android?
  • What is an action?
  • What are the advantages of Android?
  • What is the TTL (Time to Live)? Why is it required?
  • How is nine-patch image different from a regular bitmap?
  • Explain IP datagram, Fragmentation and MTU?
  • Explain about the exceptions of Android?
  • Describe Android Application Architecture?
  • What are the advantages of Android?
  • Explain about the exceptions of Android?
  • What are the features of Android?
  • What are the differences between a domain work group?
  • What is needed to make a multiple choice list with a custom view for each row?
  • What are the dialog boxes that are supported in android? Explain
  • Is there anyway to determine if an Intent passed into a BroadcastReceiver’s on Receive is the result of a sticky Broadcast Intent, or if it was just sent?
  • #Android Interview Questions and Answers PDF

    Android Interview Questions and Answers
    What is android?

    Android is a stack of software for mobile devices which has Operating System, middle-ware 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.

    What is activity?

    A single screen application with supporting Java code

    What is intent in Android?

    A class (Intent) will describes what a caller desires to do. The caller will send this intent to Android’s 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).

    What is a Sticky Intent?

    sendStickyBroadcast() performs a sendBroadcast (Intent) known as 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.

    What Programming languages does Android support for application development?

    Android applications support using Java programming Language. which is coded in Java and complied using Android SDK.

    What is a resource?

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

    How will you record a iphone call in Android? or How to handle on Audio Stream for a call in Android?

    PermissionsWOCESS_OUTGOING_CALLS: Will Allows an application to monitor, modify, or abort outgoing calls. So through that we can monitor the Phone calls

    What’s the difference between class, file and activity in android?

    Class – The Class file is complied from .java file. Android will use this .class file to produce the executable apk

    File – It is a block of resources, arbitrary information. It can be an y file type.

    Activity – An activity is the equivalent of a Frame/Window in GUI tool kits. 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.

    Does Android support the Bluetooth serial port profile?

    Yes, Android support the Bluetooth serial port profile

    Can an application be started on power up?

    Yes, application can be started on power up.

    What is APK format

    The APK file is compressed AndroidManifest.xml file with extension .apk, Which have application code (.dex files), resource files, and other files which is compressed into single .apk file.

    How to Translate in 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.

    What is an action?

    A description of something that an Intent sender desires.

    What are the advantages of Android?

    The following are the advantages of Android:
    * The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like Orange and AT&T 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.

    What is the TTL (Time to Live)? Why is it required?

    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 our when the packet is discarded, and when it becomes zero, the router tests the discarded packets and sends a message, Internet Control Protocol message back to the originating host.

    How is nine-patch image different from a regular bitmap?

    It is a resizeable bitmap resource that can be used for backgrounds or other images on the device. The Nine Patch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges a re scaled in one axis, and the middle is scaled in both axes.

    Explain IP datagram, Fragmentation and MTU?

    IP datagram can be used to describe a portion of P 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 of connection 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.

    Explain about the exceptions of Android?

    The following are the exceptions that are supported by allow:

    • InflateException : When an error conditions are occurred, this exception is thrown
    • Surface.Out0fResourceException: When a surface is not created or resized, this exception is thrown
    • SurfaceHolder.BadSurface TypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS I WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.Layou tParamstoken.

    Describe Android Application Architecture?

    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 signalling users – light, sound, icon, notification, dialog etc.
    • Content Providers – They share data between applications

    What are the advantages of Android?

    The following are the advantages of Android:

    The customer will be benefited from wide range of mobile applications to choose, since the monopoly 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 near by convenience Store etc., are some of the additive facilities in Android.

    Explain about the exceptions of Android?

    The following are the exceptions that are supported Android

    • InflateException: When an error conditions are occurred, this exception is thrown
      Surface.OutOfResourceException: When a surface is not created or resized, this exception throw
    • SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACETYPE_PUSH_BUFFERS
    • WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.

    What are the features of Android?

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

    What are the differences between a domain work group?

    In a domain, one or more computer can be a server to manage the network. On the other hand in a work group all computers are peers having no control on each other. In a domain user doesn’t need an account to login 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.

    What is needed to make a multiple choice list with a custom view for each row?

    Multiple choice list can be viewed by making the CheckBox android:id va lue be “@android:id Itextl “. That is the ID used by Android for the CheckedTextView in simplelist_item_multiple_choice.

    What are the dialog boxes that are supported in android? Explain

    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.

    Is there anyway to determine if an Intent passed into a BroadcastReceiver’s on Receive is the result of a sticky Broadcast Intent, or if it was just sent?

    Example for sticky broadcast

    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.

    Share

    Leave a Reply

    Your email address will not be published. Required fields are marked *