Whether you are interviewing for an Android developer position, or interviewing a developer to build your Android app, these questions are absolutely essential. It includes answers for each, and at the end is a link to download them in a PDF version.
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
11 Essential Android Development Interview Questions and Answers
1. Copyright 2015 MobileMammoth.com
11 Essential Android
Development Interview
Questions and Answers
Helping Busy People Build
Income through Mobile Apps |
MobileMammoth.com
2. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
Question #1
What is the manifest file and how is it used?
2
3. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
1. What is the manifest file and how is it used?
❖ Answer: Every Android app must have this manifest file
in its root directory named <AndroidManifest.xml>. The
file includes critical information about the app, including
the Java package name for the application.
❖ Bonus follow up question: What is the first element in the
AndroidManifest file, right after the encoding declaration?
❖ Answer: <manifest> Note: The ‘permissions’ element is the
next best answer if the developer assumed you meant the
first element within the <manifest> structure.
3
4. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
Question #2
Name 4 ways Android allows you to store
data.
4
5. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
2. Name 4 ways Android allows you to store data.
Answer:
Any of the following 5 possible options are acceptable:
1. SharedPreferences
2. Internal Storage
3. External Storage
4. SQLite Database
5. Network connection
5
6. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
Question #3
What items or folders are important in every
Android project?
6
7. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
3. What items or folders are important in every Android
project?
Answer:
The developer should name at least 4 of these 6 items below, as these are
essential within each Android project:
1. AndroidManifest.xml
2. build.xml
3. bin/
4. src/
5. res/
6. assets/
7
9. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
4. What is ANR?
Answer:
ANR stands for “Application Not Responding”.
It’s a dialog box that appears when an application doesn’t
respond for more than 10 seconds (sometimes it can be
less than 10 seconds). The ANR dialog box offers the user
the option of either closing the app or waiting for it to
finish running.
9
11. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
5. How do you avoid an ANR?
Answer:
A follow-up to the previous question, there are a number of possible
answers here.
What you want to hear is that you want as little work done as possible on
the main thread, also known as the “UI thread”. Since that is the core
single thread that your application runs on, you would want to keep
activities that require more complex computations or network and
database connections, for example, on separate worker threads so as not
to slow down the main thread.
Said another way, you want to keep the complex, long-running operations
off of the UI thread.
11
13. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
6. What are containers?
Answer:
Containers holds objects and widgets together, depending
on which items are needed and in what arrangement they
need to be in.
Containers may hold labels, fields, buttons, or even child
containers, as examples.
13
14. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
Question #7
What is the latest version of Android called,
and what others can you name?
14
15. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
7. What is the latest version of Android called, and what
others can you name?
Answer:
Android releases have code names that are well known
throughout the Android community. The next slide shows all
the versions names, numbers, APIs, and release dates.
This question is to weed out the beginners who may not be as
familiar with the whole Android release cycle.
You really want your developer to be tuned in with the
Android updates so they know what’s possible, and where
the platform is headed in general.
15
16. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
7. What is the name of the latest version of Android, and
what others can you name? (continued)
16
Version Name
Version
Number
API Release Date
Lollipop 5.0 - 5.0.2 21 Jun 25, 2014
KitKat 4.4 19 - 20 Oct 31, 2013
Jelly Bean 4.1 - 4.3 16 - 18 Jun 27, 2012
Ice Cream
Sandwich
4.0.3 - 4.0.4 14 - 15 Oct 19, 2011
Honeycomb 3.0 - 3.2 11 - 13 Feb 22, 2011
Gingerbread 2.3.3 - 2.3.7 9 - 10 Dec 6, 2010
18. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
8. What are App Widgets?
Answer:
Also referred to simply as Widgets, App Widgets in the
Android world are miniature views that are embedded
within Android apps and typically display periodic
updates.
Music players, weather updates, sports scores, and stock
price changes are all examples of data that can be
displayed in an App Widget.
18
20. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
9. What is AIDL?
Answer:
Android Interface Definition Language.
It offers to define the client’s interface requirements and
moreover a service in order to communicate at same level
with the help of inter process communications.
20
22. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
10. What data types does AIDL support?
Answer:
AIDL supports the following data types:
❖ charSequence
❖ list
❖ map
❖ string
❖ all types of native java data types
22
23. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
Question #11
What information do you need before you
begin coding an Android app for a client?
23
24. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
11. What information do you need before you begin coding
an Android app for a client?
Answer:
You want to know if this person will seek to truly understand what you’re trying
to accomplish with your app, and the functionality. The following items are good
to hear:
❖ Objective statement or purpose of the app for the app publisher
❖ Description of the target audience or user demographics
❖ Wireframes
❖ Artwork. The best developers will say they require the artwork to be
completed before development. This avoids delays, and helps the
developer understand the look, feel, and branding you are trying to
achieve.
24
25. MobileMammoth.com |Helping Busy People Build Income through Mobile Apps
There’s More Where This Came From…
To get these questions and answers as an instant PDF
download, click here.
You might also be interested in my article on iOS
Developer Interview Questions and Answers.
My name’s Corey. Thanks for reading!
Note: These slides were published by MobileMammoth.com.
25