sometimes, you might get this type of android interview questions - the opinion-based ones. this is...

11
1 www.bitdegree.org

Upload: others

Post on 07-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 2: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

2www.bitdegree.org

INTRODUCTION

It is of no secret that Android is loved by millions of people around the world. Created and developed by Google, it would be most developers’ dream job. That being said, there are a lot of job opportunities that do require you to be proficient with Android development. These are typically high-end jobs that offer awesome salaries and great work benefits. However, before you can start reaping the benefits of such a job, you need to actually get it first. Even though these questions are labeled as “basic”, you shouldn’t just discard them as common knowledge. Even if you’re an experienced Android developer, you might still find some things that are simply too difficult to explain. Thus, you have to search for an easier answer. And these basic questions provide just that - a chance to learn how to deal with difficult stuff in an easy way!

Page 3: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

3www.bitdegree.org

CommonInterviewQuestions

Common InterviewQuestions

Page 4: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

4www.bitdegree.org

Quite simply, Android is a mobile operating service. It was created and developed by the team

at Google. Its code is based on the open-source Linux kernel, and Android was designed to

primarily be used on touchscreen devices, thus eventually becoming the biggest rival to iOS.

What is Android?1

The Application class can be considered as the baseline of Android - it is the key class that

contains all of the other important elements for other actions and services that Android

performs. Probably needless to say, but this class is initialized before anything else in Android

once the program is launched.

What is ‘application’?2

GUI literally means Graphical User Interface. It is a tool that helps the developers to simulate

certain specific scenarios and see them in the way that a user of the app would see it.

Android’s GUI is stored within what is called an “Android SDK”. For an easy comparison

of what that is, imagine that you were planning to go and work in the garden. What would you

need to do that? That’s right - tools. Where are the tools usually stored? That’s right - the shed.

The Android SDK is the equivalent of a shed - it stores all of the essential and necessary tools for

the developer’s easy access.

Where is the GUI of Android Stored?

3

In the Android system, adapters are used to connect the AdapterView (whatever that might be;

it depends on the specific scenario in which it is used) with an external source of data.

What is the use of an Adapter?

4

Page 5: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

5www.bitdegree.org

In addition to definitions, you might also encounter a lot of comparison-based Android developer

interview questions during your job interview. When it comes to the basic part, these would

usually require you to compare some very fundamental Android variables. The same applies in

this case.

When you imply an implicit intent, the Android interface checks the system for settings that

might help you perform your task. The explicit intent, on the other hand, is when you specify

the components that your system should use while performing the task. To oversimplify, you

basically just order the system to do as you say and leave little room for agility.

Define ‘Implicit’ and ‘Explicit’ Intents.

5

Name the four Java sensor classes.

6

Android uses four specific Java classes that are based on sensors. These are as follows:

Interview Assignment7Can you run Java on Android using the standard bytecode?

No, no you can’t. If this is one of the Android interview questions that your employers will ask a

follow-up question (in this case it would most likely be “why?”), you can just say that Android is

based on and uses a different, specific type of bytecode.

1. Sensor 2. SensorEvent 3.SensorManager

4. SensorEventListener

Page 6: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

6www.bitdegree.org

Sometimes, you might get this type of Android interview questions - the opinion-based ones.

This is actually pretty cool because you are completely free to tell your opinion on the matter,

but (at least in this case) can be sure that it’s completely subjective.

Why do employers even ask such questions, then? Well, that’s pretty easy - to see what you value

and prioritize the most when it comes to Android. It’s a nice “trick question” for the employers

to check if you’re going to go on a rant that you memorized on the internet, or if you’re actually

thinking about it.

Since it’s quite subjective, there is no one true or false answer. However, just to give you a few

examples of what a lot of other people proclaim to be the best features: Android being open-

source, being supported by a wide variety of hardware developers, being based on Java and so

on.

Advantages of the Android system

8

This command is used to access specific types of organized and structured sets of data. You

can view it as a sort of a medium - it connects strings of code with other, different strings

of code.

If you remember one of the previous Android interview questions and answers in this tutorial

(namely, Question 6), you probably know that Android cannot use the Java bytecode because it

has one of its own. This bytecode is called Dalvik Virtual Machine (DVS).

What Does ‘ContentProvider’ do?9

What is the Bytecode That Android Uses?

10

Page 8: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

8www.bitdegree.org

The two Main Methods of Storing Data in Android?

11

These methods are Shared Preferences and Internal Storage. Shared Preferences are

mainly used to store key-value pairs, which can sometimes be a limitation. Internal Storage, on

the other hand, stores all of the developer’s private data and information within the device’s

inner memory.

How can you use ‘Intent’?12When it comes to advanced Android interview questions and answers, they are most likely to

have more than one answer (at least in most cases). This question is no exception.

There are three common situations where you would use ‘intent’: to start the device, to start a

specific activity and to start a broadcast.

What is an ‘activity’?13A clear example of trick Android interview questions. In truth, this is actually a very simple and

straightforward question with an even simpler answer - activity is the container in the user

interface. Why is this placed in the “advanced” category, then?

As I’ve mentioned earlier, you are bound to get some trick Android interview questions in your

job interview. Your potential employer might want to throw you off balance with sneaking in an

actual super-easy question. Furthermore, you would be surprised at how many people actually

do have a hard time defining Android ‘activities’.

Page 9: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

9www.bitdegree.org

The Core Components of the Android OS?

14

In total, there are five main components essential to Android - Activity, Content Provider,

Fragment, Intents and Services.

In Android, handlers are most commonly used to pass communication between different

threads. This is especially true in the scenario where you would use a handler to pass an action

from a background thread to the main one.

What’s the use of ‘Handlers’?15

Activity Content Provider Fragment

Intents Services

What is the Best Database for Android Applications?

16

This is considered to be one of the more advanced Android interview questions mostly because

you either know it, or you don’t. So, don’t guess or try to talk your way out of this one. The answer

is pretty straight forward.

The best open-source database for Android apps is SQLite.

Page 10: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

10www.bitdegree.org

Can two different Android apps share a Linux ID?

17

Yes, as a matter of fact, they can. However, needless to say, it doesn’t happen just like that.

In order for the two apps to hold a shared Linux ID, they would both have to have signed with

the same certificate. In addition to that, they would then also share the same VP.

What’s DDMS?18DDMS literally abbreviates to the Dalvik Debug Monitor Server. It is a bug monitoring server that

comes together with the Android OS itself. It’s responsible for tracking errors, incoming call, SMS,

location data spoofing and - naturally - debugging.

Application Not Responding. It is a pop-up that the developer would receive if he or she had

initiated too many processes at the same time. It’s basically Android’s way of telling you that

you’ve crashed the system.

What’s the Difference Between an ‘AsyncTask’ and a ‘Thread’?

20

AsyncTasks are used to work with short-running processes (up to 5 seconds), while threads

handle longer running processes.

What is ‘ANR’?19

Page 11: Sometimes, you might get this type of Android interview questions - the opinion-based ones. This is actually pretty cool because you are completely free to tell your opinion on

11www.bitdegree.org

Remember to get a good night’s sleep, eat a healthy breakfast and try not to stress about it too much. Being nervous is completely normal and understandable - freaking out isn’t all that great.

Don’t try to superficially impress your employers - just be yourself! That always turns out as the better choice to make. Instead, show them who you are as a person. Skills can be acquired, and a lot of potential employers are ready to teach them. Character traits, on the other hand, are a bit different - if you act like a jerk during the job interview, that is the last time you will most likely see that company.

I honestly hope that the questions and answers provided in this tutorial will help you score that dream job as an Android developer. Remember - study hard, leave some time for yourself, and, when the time comes to show your potential employers what you’ve got - kick some butt!

GENERAL TIPS