Sign in to unlock

Get unlimited access to all questions and answers

checked

Get lifetime access

checked

Track progress

checked

Save time

The fastest way to prepare
for a tech interview

Check our curated list of full-stack, data structures & software architecture interview questions and answers for developers

Android interview questions

Android interview questions.

Only challenges
Topic progress: 0%
  • 1.

    Mention the difference between RelativeLayout and LinearLayout?

    premium question
    completed

    Answer:

  • 2.

    What is the difference between Bitmap and Drawable in Android?

    premium question
    completed

    Answer:

  • 3.

    What is a difference between Spannable and String?

    premium question
    completed

    Answer:

  • 4.

    What is an Activity?

    premium question
    completed

    Answer:

  • 5.

    Why is it recommended to use only the default constructor to create a Fragment?

    premium question
    completed

    Answer:

  • 6.

    How to persist data in an Android app?

    premium question
    completed

    Answer:

  • 7.

    Explain briefly all the Android application components

    premium question
    completed

    Answer:

  • 8.

    How do I pass data between Activities in Android application?

    premium question
    completed

    Answer:

  • 9.

    What is Dalvik?

    premium question
    completed

    Answer:

  • 10.

    Explain activity lifecycle

    premium question
    completed

    Answer:

  • 11.

    What is an AsyncTask?

    premium question
    completed

    Answer:

  • 12.

    Explain the build process in Android

    premium question
    completed

    Answer:

  • 13.

    What is ADB and what is it used for?

    premium question
    completed

    Answer:

  • 14.

    What’s the difference between onCreate() and onStart()?

    premium question
    completed

    Answer:

  • 15.

    In what situation should one use RecyclerView over ListView?

    premium question
    completed

    Answer:

  • 16.

    What is View Group? How are they different from Views?

    premium question
    completed

    Answer:

  • 17.

    How can I get the context in a fragment?

    premium question
    completed

    Answer:

  • 18.

    What is Armv7?

    premium question
    completed

    Answer:

  • 19.

    What is the Dalvik Virtual Machine?

    premium question
    completed

    Answer:

  • 20.

    How does the OutOfMemory happens?

    premium question
    completed

    Answer:

  • 21.

    What is an Intent in Android?

    premium question
    completed

    Answer:

  • 22.

    Tell about Constraint Layout

    premium question
    completed

    Answer:

  • 23.

    What is a ContentProvider and what is it typically used for?

    premium question
    completed

    Answer:

  • 24.

    What types of Context do you know?

    premium question
    completed

    Answer:

  • 25.

    Explain Android notification system

    premium question
    completed

    Answer:

  • 26.

    What is the most appropriate way to store user settings in Android application?

    premium question
    completed

    Answer:

  • 27.

    What is 'Context' on Android?

    premium question
    completed

    Answer:

  • 28.

    Is it possible to implement the model–view–controller pattern in Java for Android?

    premium question
    completed

    Answer:

  • 29.

    What are the differences between ArrayList and ArrayMap?

    premium question
    completed

    Answer:

  • 30.

    What is the difference between Handler vs AsyncTask vs Thread?

    premium question
    completed

    Answer:

  • 31.

    What is the difference between Service & Intent Service?

    premium question
    completed

    Answer:

  • 32.

    What is DDMS and what can you do with it?

    premium question
    completed

    Answer:

  • 33.

    What does LayoutInflater in Android do?

    premium question
    completed

    Answer:

  • 34.

    What are Android Annotations and what are they used for?

    premium question
    completed

    Answer:

  • 35.

    What is Intent Filter?

    premium question
    completed

    Answer:

  • 36.

    Explain String vs StringBuilder vs SpannedString vs SpannableString vs SpannableStringBuilder vs CharSequence

    premium question
    completed

    Answer:

  • 37.

    How would you communicate between two Fragments?

    premium question
    completed

    Answer:

  • 38.

    What is ART?

    premium question
    completed

    Answer:

  • 39.

    What are retained fragments?

    premium question
    completed

    Answer:

  • 40.

    When to use Android's ArrayMap instead of a HashMap?

    premium question
    completed

    Answer:

  • 41.

    How can two distinct Android apps interact?

    premium question
    completed

    Answer:

  • 42.

    Why fragments, and when to use fragments instead of activities?

    premium question
    completed

    Answer:

  • 43.

    What is Explicit Intent?

    premium question
    completed

    Answer:

  • 44.

    What is Implicit Intent?

    premium question
    completed

    Answer:

  • 45.

    What is the difference between compileSdkVersion and targetSdkVersion?

    premium question
    completed

    Answer:

  • 46.

    What is Parcelable in Android?

    premium question
    completed

    Answer:

  • 47.

    What is the support library? Why was it introduced?

    premium question
    completed

    Answer:

  • 48.

    When to use Android Loaders?

    premium question
    completed

    Answer:

  • 49.

    Isn't android's Bundle functionally equivalent with a Map?

    premium question
    completed

    Answer:

  • 50.

    What is the difference between invisible and gone for the View visibility status?

    premium question
    completed

    Answer:

  • 51.

    How could you pass data between activities without Intent?

    premium question
    completed

    Answer:

  • 52.

    How to declare global variables in Android?

    premium question
    completed

    Answer:

  • 53.

    What is the difference between onCreate() and onCreateView() lifecycle methods in Fragment?

    premium question
    completed

    Answer:

  • 54.

    What is a JobScheduler?

    premium question
    completed

    Answer:

  • 55.

    When to use Fragments vs Activities?

    premium question
    completed

    Answer:

  • 56.

    What is Handler and what is it used for?

    premium question
    completed

    Answer:

  • 57.

    What is the difference between AsyncTask and Thread/Runnable?

    premium question
    completed

    Answer:

  • 58.

    Explain key differences between Service and IntentService

    premium question
    completed

    Answer:

  • 59.

    What is the difference between Activity and Context?

    premium question
    completed

    Answer:

  • 60.

    What is Android Data Binding?

    premium question
    completed

    Answer:

  • 61.

    What are the permission protection levels in Android?

    premium question
    completed

    Answer:

  • 62.

    Describe Different Types of Services in Android

    premium question
    completed

    Answer:

  • 63.

    What is the difference between ListView and RecyclerView?

    premium question
    completed

    Answer:

  • 64.

    What is the best way to update the screen periodically?

    premium question
    completed

    Answer:

  • 65.

    What is an Android PendingIntent?

    premium question
    completed

    Answer:

  • 66.

    Android Log.v(), Log.d(), Log.i(), Log.w(), Log.e(). When to use each one?

    premium question
    completed

    Answer:

  • 67.

    What are dex files are used for?

    premium question
    completed

    Answer:

  • 68.

    What is RenderScript and when should we (really) use it?

    premium question
    completed

    Answer:

  • 69.

    Explain how HashMap works

    premium question
    completed

    Answer:

  • 70.

    How would you preserve Activity state during a screen rotation?

    premium question
    completed

    Answer:

  • 71.

    What is a LocalBroadcastManager?

    premium question
    completed

    Answer:

  • 72.

    What are the differences between onCreate(), onCreateView(), and onActivityCreated() in fragments and what would they each be used for?

    premium question
    completed

    Answer:

  • 73.

    What is the actual differences between a activity context and application context?

    premium question
    completed

    Answer:

  • 74.

    What is the difference between a Bundle and an Intent?

    premium question
    completed

    Answer:

  • 75.

    What is the ViewHolder pattern? Why should we use it?

    premium question
    completed

    Answer:

  • 76.

    What is the difference between Adapter and Loader in Android?

    premium question
    completed

    Answer:

  • 77.

    How would you support different screen sizes?

    premium question
    completed

    Answer:

  • 78.

    Discuss Singletons vs. Application Context for app-global state

    premium question
    completed

    Answer:

  • 79.

    What are some best practices to avoid memory leaks on Android?

    premium question
    completed

    Answer:

  • 80.

    What is Broadcast Receiver?

    premium question
    completed

    Answer:

  • 81.

    What is the difference between getContext() , getApplicationContext() , getBaseContext() , and "this"?

    premium question
    completed

    Answer:

  • 82.

    What are best practices for storing and protecting private API keys in applications?

    premium question
    completed

    Answer:

  • 83.

    Explain how ArrayMap works

    premium question
    completed

    Answer:

  • 84.

    When to use SparseArray vs HashMap?

    premium question
    completed

    Answer:

  • 85.

    What is AIDL?

    premium question
    completed

    Answer:

  • 86.

    How do you handle Bitmaps in Android as it takes too much memory?

    premium question
    completed

    Answer:

  • 87.

    What are some differences between ART and Dalvik?

    premium question
    completed

    Answer:

  • 88.

    How to avoid reverse engineering of an APK file?

    premium question
    completed

    Answer:

  • 89.

    When is it necessary, or better to use a SurfaceView instead of a View?

    premium question
    completed

    Answer:

  • 90.

    Is a Dalvik virtual machine instance created for each application?

    premium question
    completed

    Answer:

  • 91.

    What is a Sticky Broadcast?

    premium question
    completed

    Answer:

  • 92.

    What is the difference between ANR and crash in Android?

    premium question
    completed

    Answer:

  • 93.

    What is the Android NDK? How can one use it? Why should one use it?

    premium question
    completed

    Answer:

  • 94.

    What is Doze? What about App Standby?

    premium question
    completed

    Answer:

  • 95.

    What is the StrictMode?

    premium question
    completed

    Answer:

  • 96.

    What are Android Architecture Components?

    premium question
    completed

    Answer:

  • 97.

    Can you manually call the Garbage collector?

    premium question
    completed

    Answer:

  • 98.

    Why to consider FlatBuffers over JSON?

    premium question
    completed

    Answer:

  • 99.

    What are some difference between Parcelable and Serializable?

    premium question
    completed

    Answer:

  • 100.

    What is the difference between Android timer and a Handler to do action every N seconds?

    premium question
    completed

    Answer:

  • 101.

    What is the difference between ArrayMap vs HashMap?

    premium question
    completed

    Answer:

  • 102.

    Provide some tips to reduce battery usage in an android application

    premium question
    completed

    Answer:

  • 103.

    What is a ThreadPool? And is it more effective than using several separate Threads?

    premium question
    completed

    Answer:

  • 104.

    What is the relationship between Looper, Handler and MessageQueue in Android?

    premium question
    completed

    Answer:

  • 105.

    What is the difference between Local, Normal, Ordered and Sticky broadcasts?

    premium question
    completed

    Answer:

  • 106.

    What is Intent vs Sticky Intent vs Pending Intent?

    premium question
    completed

    Answer:

  • 107.

    What happens if the user navigates away or closes the app while I still have a reference to the Activity the user just closed in my AsyncTask?

    premium question
    completed

    Answer:

  • 108.

    Explain when would you call getApplicationContext() and why?

    premium question
    completed

    Answer:

  • 109.

    Explain reasons why not to use getApplicationContext()?

    premium question
    completed

    Answer:

  • 110.

    When to use AIDL vs Messenger Queue?

    premium question
    completed

    Answer:

  • 111.

    What is the onTrimMemory method?

    premium question
    completed

    Answer:

  • 112.

    When would you use AIDL?

    premium question
    completed

    Answer:

  • 113.

    How can I use AsyncTask in different Activities?

    premium question
    completed

    Answer:

One tip that got me hired by Google, Microsoft, and Stripe

I've worked for Microsoft, Google, Stripe, and received offers from many other companies. One thing I learned when I was interviewing myself is that standard interview tips are woefully inadequate.

Reverse Tech Interview: Questions to Stump an Interviewer

Few people want to get into an uncomfortable environment or an unprofitable company with no prospects. If you’re wondering how to get a real feel for a company during an interview, you’re welcome. I’ll give a list of questions that interviewers don’t usually expect...

How to become a programmer, move to the US, and get a dream job

Are you curious about what you need to do to earn more than $15.000 a month, drive a Tesla, live in sunny California, and work at Google, Apple, Facebook, or Amazon?

11 Reactive Systems interview questions and answers for software engineers

Reactive systems are an architectural style that allows multiple individual applications to blend into one unit, reacting to their environment, while staying aware of each other. Here is a list of coding interview questions on Reactive Systems to help you get ready for your next data struc...

. Reactive Systems
34 Microservices interview questions and answers for software engineers

Microservice architecture – a variant of the service-oriented architecture structural style – arranges an application as a collection of loosely coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight. Here is a list of coding intervie...

. Microservices
7 Layering & Middleware interview questions for developers

Middleware in the context of distributed applications is software that provides services beyond those provided by the operating system to enable the various components of a distributed system to communicate and manage data. Middleware supports and simplifies complex distributed application...

. Layering & Middleware
55 Docker interview questions and answers for software engineers

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Here is a list of coding interview questions on Docker to help you get ready for your next data structures interview in 2021.

. Docker
23 Databases interview questions and answers for software engineers

A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques. Here is a list of coding interview questions on Databases to help you g...

. Databases
21 Concurrency interview questions and answers for software engineers

In computer science, concurrency is the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the final outcome. Here is a list of coding interview questions on Concurrency to help you get ready for your n...

. Concurrency
13 CAP Theorem interview questions and answers for software engineers

In theoretical computer science, the CAP theorem, also named Brewer's theorem after computer scientist Eric Brewer, states that it is impossible for a distributed data store to simultaneously provide more than two out of the following three guarantees: Consistency: Every read receives the ...

. CAP Theorem
Load more posts

Features

folder icon

Access all answers

Get the inside track on what to expect in your next tech interview. We offer you a collection of high quality technical interview questions to help you prepare for your next coding interview.

graph icon

Track progress

A smart interface helps you track your progress and focus on the topics you need. You can search through questions or sort them by difficulty or type.

clock icon

Save time

Save tens of hours searching for information on hundreds of low-quality sites designed to drive traffic and make money from advertising.

Land a six-figure job at one of the top companies.

amazon logo facebook logo google logo microsoft logo uber logo
Prepare for a technical interview

Get hired with our
tech interview questions & answers