32 android interview questions and answers

Android interview questions and answers for freshers and experienced candidates. Also find Android online practice tests to fight written tests and certification exams on Android. In this section we have covered almost all Android questions that might be asked during an interview.

Android interview questions

Part 1   Part 2   Part 3   Part 4   Part 5
Android test   iPhone   Android   Blackberry   iPOD  iTouch

Android interview online test (100 questions)  -By Pradip Patil, Lecturer IIMP MCA

Android interview questions - posted on June 27, 2013 at 15:29 PM by Kshipra Singh 

1. What are the key components of Android Architecture?

Android Architecture consists of 4 key components:
- Linux Kernel
- Libraries
- Android Framework
- Android Applications

2. What are the advantages of having an emulator within the Android environment?

- The emulator allows the developers to work around an interface which acts as if it were an actual mobile device.
- They can write, test and debug the code.
- They are safe for testing the code in early design phase

3. Tell us something about activityCreator?

- An activityCreator is the initial step for creation of a new Android project.
- It consists of a shell script that is used to create new file system structure required for writing codes in Android IDE.

4. What do you know about Intents?

- Notification messages to the user from an Android enabled device can be displayed using Intents. The users can respond to intents.
- There are two types of Intents - Explicit Intent, Implicit Intent.

5. What is an Explicit Intent?

- Explicit intent specifies the particular activity that should respond to the intent.
- They are used for application internal messages.

6. What is an Implicit Intent?

- In case of Implicit Intent, an intent is just declared.
- It is for the platform to find an activity that can respond to it.
- Since the target component is not declared, it is used for activating components of other applications.

7. What do intent filters do?

- There can be more than one intents, depending on the services and activities that are going to use them.
- Each component needs to tell which intents they want to respond to.
- Intent filters filter out the intents that these components are willing to respond to.

8. Where are lay out details placed? Why?

- Layout details are placed in XML files
- XML-based layouts provide a consistent and standard means of setting GUI definition format.

9. What do containers hold?

- Containers hold objects and widgets in a specified arrangement.
- They can also hold labels, fields, buttons, or child containers. .

10. What is Orientation?

- Orientation decides if the LinearLayout should be presented in row wise or column wise fashion.
- The values are set using setOrientation()
- The values can be HORIZONTAL or VERTICAL

11. What is it important to set permissions in app development?

- Certain restrictions to protect data and code can be set using permissions.
- In absence of these permissions, codes could get compromised causing defects in functionality.

12. What is AIDL?

- AIDL is the abbreviation for Android Interface Definition Language.
- It handles the interface requirements between a client and a service to communicate at the same level through interprocess communication.
- The process involves breaking down objects into primitives that are Android understandable.

13. What data types are supported by AIDL?

AIDL supports following data types:
-all native Java data types like int,long, char and Boolean

14. Tell us something about nine-patch image.

- The Nine-patch in the image name refers to the way the image can be resized: 4 corners that are unscaled, 4 edges that are scaled in 1 axis, and the middle one that can be scaled into both axes.
- A Nine-patch image allows resizing that can be used as background or other image size requirements for the target device.

15. Which dialog boxes are supported by android?

Android supports 4 dialog boxes:

a.) AlertDialog: Alert dialog box supports 0 to 3 buttons and a list of selectable elements which includes check boxes and radio buttons.

b.) ProgressDialog: This dialog box is an extension of AlertDialog and supports adding buttons. It displays a progress wheel or bar.

c.) DatePickerDialog: The user can select the date using this dialog box.

d.) TimePickerDialog: The user can select the time using this dialog box.

16. What is Dalvik Virtual Machine?

- It is Android's virtual machine.
- It is an interpreter-only virtual machine which executes files in Dalvik Executable (.dex) format. This format is optimized for efficient storage and memory-mappable execution.

1.What is android? What are the features of Android?

Android is a stack of software for mobile devices which has Operating System, middleware and some key applications..............
Read answer

2.Why to use Android?

Android is useful because: 1) It is simple and powerful SDK.............
Read answer

3.Describe Android Application Architecture.

Android Application Architecture has the following components:...........
Read answer

4.Describe a real time scenario where android can be used

Imagine a situation that you are in a country where no one understands the language you speak and you can not read or write.............
Read answer

5.What are the advantages of Android?

The following are the advantages of Android: 1) 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.................
Read answer

6.How to select more than one option from list in android xml file? Give an example.

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

7.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 value be “@android:id /text1"...........
Read answer

8.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............
Read answer

9.Explain about the exceptions of Android.

The following are the exceptions that are supported by Android............
Read answer

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

11.What are the differences between a domain and a workgroup?

In a domain, one or more computer can be a server to manage the network. On the other hand in a workgroup all computers are peers having no control on each other.............

12.Explain IP datagram, Fragmentation and MTU.

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

Test your android skills!

Write your comment - Share Knowledge and Experience

Discussion Board
Wants to help someone that need it.

Hey friends you can find the more@..............http://androidtutorialsrkt.blogspot.in/

robi kumar tomer 11-7-2013 07:37 AM

Android interview questions and answers.

How to avoid ANR status?
Android allows the system to protect the applications that are not responsive for a period of time by displaying a status called as ANR (Application not responding). Methods should use the main thread for work, as it takes long time for the main thread to complete the task. The work should be divided and another thread named as child thread be used for executing more tasks, as it takes less time. Main thread should provide a handler for child threads to post back upon completion.

What is the file features used in android?
Android is rich in file features and it provides lots of variations in them as well. The file features are as follows:
Intent filters: includes bundle of information which describes a desired action.

Icons and Labels: includes 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.

Permissions: it 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

Libraries: it includes the basic packages for building and developing applications.

Rohit Sharma 12-11-2011 05:44 AM

Android interview questions and answers.

How does the AOSP relate to the Android Compatibility Program?

AOSP stands for Android Open-source project that maintains Android software and keep track of the new versions. It can be used for any purpose including the devices that are not compatible with other devices. It is related to the Android Compatibility Program as it defines the implementation of Android that is compatible with the third party apps.

What are the different Storage Methods in android?

Android provides many options for storage of persistent data. It provides the solution according to your need. The storages which have been provided in Android are as follows:-

Shared Preferences: Store private primitive data in key-value pairs

Internal Storage: Store private data on the device memory.

External Storage: Store public data on the shared external storage.

SQLite Databases: Store structured data in a private database.

Network Connection: Store data on the web with your own network server.

What is localization and how to achieve?

Localization is a way of representing the products in different languages. Android is an operating system which runs in many regions, so to reach different users localization is a must. Localization in Android can be achieved by incorporating different languages in the application which you are using. To do this knowledge of Java, XML elements, Activity lifecycle and general principles of internationalization and localization are required.

Rohit Sharma 12-11-2011 05:43 AM

Android interview questions and answers.

Describe Briefly the Android Application Architecture.

Android application architecture allows the simplification and reuse of any application. It provides a better way to publish the capabilities of the application so that any other application can make good use of those capabilities. This architecture includes the following components:

Intent: perform some operation on some activity and service

Resource Externalization - such as strings and graphics

Notification signaling users - light, sound, icon etc.

Content Providers – sharing of data between various applications

What dialog boxes are supported in android?

There are 4 dialog boxes which have been supported by Android. These are as follows:
AlertDialog: it supports 0 to 3 buttons with a list of selectable elements that includes check boxes and radio buttons.

-ProgressDialog: it displays the progress of any dialog or application. It is an extension of AlertDialog and supports adding buttons.
-DatePickerDialog: it is used to give provision to the user to select the date
- TimePickerDialog: it is used to give provision to the user to select the time

Rohit Sharma 12-11-2011 05:43 AM

Android interview questions and answers.

What is APK format in Android? How to make an APK file?

APK termed as Application package file is a format that is used to distribute and install the application software for android, and middleware on the android operating system. To make an APK file, first android is compiled and then all of its parts are grouped in one file termed as package. The package consists of the entire program’s code (.dex files), resources, manifest file etc. The file is saved with .apk extension.

What is a Sticky Intent?

Intent is basically an abstract description of an operation that has to be performed for communication. Sticky Intent is also a type of intent which allows the communication between a function and a service. For example: sendStickyBroadcast() performs send Broadcast(Intent) which stays even after the broadcast is complete. It helps in retrieving the data quickly. The message ACTION_BATTERY_CHANGED of an operating system is an example of it.

How to Translate in Android?

Android uses Google translator to translate data from one language into another language using XAMPP. XAMPP is used to transmit the data. The steps which have to be followed are: Type the message in your language, go to the language setting, a list will be displayed there, select the language from the list to convert your text.

Rohit Sharma 12-11-2011 05:42 AM



Home | Want a Job? Submit Key Skills | Employer login | My key skills | About us | Sitemap | Contact us