SlideShare ist ein Scribd-Unternehmen logo
1 von 107
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Market and Salary Trends
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Market
Android is most used mobile technology with around 82% of all mobile phones based on Android.
Operating System 1Q17 Units 1Q17 Market
Share (%)
1Q16 Units 1Q16 Market
Share (%)
Android 327,163.6 86.1 292,746.9 84.1
IOS 51,992.5 13.7 51,629.5 14.8
Other OS 821.2 0.2 3,847.8 1.1
Total 379,977.3 100.0 348,224.2 100.0
Source: Gartner (May 2017)
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Salary Trends
Source: Indeed.com
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que1 : What is Android?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
➢ Android is a mobile operating system (OS) developed by Google.
➢ Designed for touchscreen mobile devices such as smartphones and
tablet computers.
➢ Open source
➢ Written in Java
➢ Android's kernel is based on one of the Linux kernel's long-term
support (LTS) branches.
Que1 : What is Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que2 : What are the features of Android?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que2 : What are the features of Android?
✓ User Interface
✓ Messaging
✓ Web Browser
✓ Connectivity
✓ Wi-Fi Direct
✓ Multi-touch
✓ Multi-tasking
✓ Multi-Language
✓ Storage
✓ Android Beam
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que3 : Explain Android Architecture?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que3 : Explain Android Architecture?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que4 : What are the different versions of Android?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que4 : What are the different versions of Android?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que5 : What is an activity?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que5 : What is an activity?
➢ An Activity is the window representation of any application in Android.
➢ It serves as an entry point for user’s interaction.
➢ Each activity has a layout file where you can place your UI.
➢ An application can have different activities.
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que6 : Explain Activity Life Cycle?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que6 : Explain Activity Life Cycle?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que7 : What are intents?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que7 : What are intents?
➢ An intent is a messaging object you can use to
request an action from another app component.
➢ Methods are used to deliver intents to different
components:
• context.startActivity()
• context.startService()
• context.sendBroadcast()
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que8 : What is implicit intent?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que8 : What is implicit intent?
Implicit intent is when the target component is not defined in the intent and the android
system has to evaluate the registered components based on the intent data.
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.edureka.co"));
startActivity(i);
Action Specification
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que9 : What is explicit intent?
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Que9 : What is explicit intent?
Explicit intent is when an application defines the target component directly in the
intent.
Intent i = new Intent(this, ActivityTwo.class);
i.putExtra("Value1", "This is ActivityTwo ");
i.putExtra("Value2", "This value two for ActivityTwo");
startActivity(i);
Target component
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que10 : What are the tools placed in android SDK?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que10 : What are the tools placed in android SDK?
➢ Android Emulator
➢ DDMS - Dalvik Debug Monitoring Services
➢ AAPT - Android Asset Packaging tool
➢ ADB - Android debug bridge
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que11 : What is an android runtime?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que11 : What is an android runtime?
➢ Android Runtime consists of Dalvik Virtual machine and
Core Java libraries.
➢ DVM is optimized for low processing power and low
memory environments.
➢ Unlike JVM, the Dalvik Virtual Machine doesn’t run .class
files, instead it runs .dex files.
➢ Android 2.2 "Froyo“ brought trace-based just-in-time (JIT)
compilation into Dalvik, optimizing the execution of
applications and dynamically compiling frequently executed
short segments of their bytecode into native machine code.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que12 : What is DDMS?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que12 : What is DDMS?
It stands for Dalvik Debug Monitor Server. It gives the wide array of debugging features:
1. Port forwarding services
2. Screen capture on the device
3. Thread and heap information
4. Logcat
5. Incoming call and SMS spoofing
6. Location data spoofing
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que13 : Explain in brief about the important file and folder when you create new app?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que13 : Explain in brief about the important file and folder when you create new app?
App - It describes the fundamental characteristics of the app and defines
each of its components.
java - This contains the .java source files for your project. By default, it
includes an MainActivity.java source file.
res - It is a directory for files that define your app’s user interface.
Gradle Scripts - This is an auto generated file which contains
compileSdkVersion, buildToolsVersion, applicationId, minSdkVersion,
targetSdkVersion, versionCode and versionName.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que14 : What is an android manifest file?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que14 : What is an android manifest file?
The manifest file provides essential
information about your app to the Android
system, which the system must have before
it can run any of the app's code.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que15 : Name some exceptions in android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que15 : Name some exceptions in android?
➢ Inflate Exception
➢ Surface.OutOfResourceException
➢ SurfaceHolder.BadSurfaceTypeException
➢ WindowManager.BadTokenException
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que16 : Name the dialog box which are supported by android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que16 : Name the dialog box which are supported by android?
➢ Alert Dialog
➢ Progress Dialog
➢ Date Picker Dialog
➢ Time picker Dialog
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que17 : What are the core building blocks of android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que17 : What are the core building blocks of android?
✓ Activity : An Activity is the screen representation of any application in
Android. Each activity has a layout file where you can place your UI.
✓ Content Provider: Content providers share data between applications.
✓ Service: It is a component that runs in the background to perform long-
running operations without interacting with the user and it even works if
application is destroyed.
✓ Broadcast Receivers: It respond to broadcast messages from other
applications or from the system itself. These messages are sometime called
events or intents.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que18 : What is a service in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que18 : What is a service in Android?
A service in android is a background process which is used to perform long running operations. Let’s say, a
service of location is active in the background while the user is in different application. So it does not
disturb the user interaction with an activity. Types -
Local : This service is accessed from within the application.
Remote : This service is accessed remotely from other applications running on the same device.
public class MyService extends Service {
}
It is implemented as a subclass of Service class as follows :
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que19 : What are the different types of services?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que19 : What are the different types of services?
Handler service
Intent Service
Service (AIDL)
1
2
3
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que20 : What is the difference between Service and Thread?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que20 : What is the difference between Service and Thread?
❖ Service is like an Activity but has no interface.
❖ A Service is not a separate process. It works in
background until the service or someone else
explicitly stop it.
❖ Service is not killed when an application is killed.
❖ It expose some of its functionality to other
applications by calling Context.bindService().
❖ A Thread is a concurrent unit of execution.
❖ By default, all components of the same
application run in the same process and
thread (called the "main" thread).
❖ Thread is killed when an Application is killed.
❖ GOOGLE has brought in Handlers and
loopers into android threads.
Service Thread
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que21 : What is a fragment?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que21 : What is a fragment?
➢ Fragment is a part of Activity
➢ You can combine multiple fragments in a single activity
which helps to display multiple screens and reuse a
fragment in multiple activities.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que22 : What is the difference between a fragment and an activity?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que22 : What is the difference between a fragment and an activity?
➢ Activity is typically a single, focused operation that a user can perform such as dial a number, take a
picture, send an email, view a map etc.
➢ Fragment is a modular section of an activity, with its own lifecycle and input events, and which can be
added or removed at will. Also, a fragment’s lifecycle is directly affected by its host activity’s lifecycle i.e.
when the activity is paused, so are all fragments in it, and when the activity is destroyed, so are all of its
fragments.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que23 : What does APK stands for?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que23 : What does APK stands for?
➢ APK stands for Android Packaging Kit.
➢ The Android packaging key is compressed with classes, UI's, supportive assets and manifest.
All these files are compressed to a single file which is called as APK.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que24 : Does android support any other language than java?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que24 : Does android support any other language than java?
➢ Yes, android app can be developed in C/C++.
➢ It should be used with android NDK (Native Development Kit) and android SDK( Software
Development Kit).
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que25 : What is a content provider?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que25 : What is a content provider?
➢ Content providers manage access to a structured set of data. It is the standard interface that connects
data in one process with code running in another process.
➢ They encapsulate the data and provide mechanisms for defining data security.
➢ Content providers are used to share the data between different applications.
It is implemented as a subclass of ContentProviderclass and must implement a standard set of APIs that
enable other applications to perform transactions.
public class MyContentprovider extends ContentProvider {
public void onCreate(){}
}
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que26 : What is a singleton class in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que26 : What is a singleton class in Android?
➢ A singleton class is a class which can
create only an object that can be shared
all other classes.
New Instance 1
Single InstanceNew Instance 2
Instance n
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que27 : What’s the difference between a file, a class and an activity in android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que27 : What’s the difference between a file, a class and an activity in android?
It is a chunk of arbitrary
information, or resource for
storing information.
It’s a compiled form of Java
file. Android uses the .class
files to produce an executable
apk
An activity is the comparable
to a Frame/Window in GUI
toolkits. It is not a file or a
file type, it’s just a class that
can be extended in Android
for loading UI elements on
view.
ActivityFile Class
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que28 : What is Dalvik Virtual Machine?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que28 : What is Dalvik Virtual Machine?
➢ Dalvik is the name of Android’s virtual machine.
➢ The Dalvik VM is an interpreter-only virtual machine that executes files in the Dalvik
Executable (.dex) format.
➢ The virtual machine is register-based and can run classes compiled by Java language
compiler that have been altered into its native format using the included ‘dx’ tool.
➢ The Dalvik core class library is envisioned to provide a familiar development base for
those used to programming with Java Standard Edition, but is geared explicitly for the
needs of a small mobile device.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que29 : What is the significance of the .dex files?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que29 : What is the significance of the .dex files?
➢ Android programs are compiled into ‘.dex’ (Dalvik Executable) files, which are zipped into
a single .apk file on the device.
➢ ‘.dex’ files can be created by translating compiled applications written in Java.
➢ (.dex) is a format that is optimized for effective storage and memory-mappable
executions.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que30 : What is a toast?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que30 : What is a toast?
➢ Toast notification is a message that pops up on the window.
➢ It only covers the expanse of space required for the message and the user’s recent activity
remains visible and interactive.
➢ The notification automatically fades in and out and does not accept interaction events.
Toast.makeText(ProjectActivity.this, “Your message here”,Toast.LENGTH_LONG).show();
Syntax :
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que31 : What are the exemptions in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que31 : What are the exemptions in Android?
 InflateException : When an error conditions occur this exception is thrown.
 Surface.OutOfResourceException: When a Surface is not created or resized, this exception is
thrown.
 SurfaceHolder.BadSurfaceTypeException: When invoked on a Surface
‘SURFACE_TYPE_PUSH_BUFFERS’, this exception is thrown from lockCanvas() method.
 WindowManager.BadTokenException: This exception is thrown at the time of trying to view an
invalid WindowManager.LayoutParamstoken.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que32 : What is the use of WebView in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que32 : What is the use of WebView in Android?
 WebView is a view that display web pages inside your application.
 According to Android, “this class is the basis upon which you can roll your own web browser or
simply display some online content within your Activity. It uses the WebKit rendering engine to
display web pages and includes methods to navigate forward and backward through a history,
zoom in and out, perform text searches and more.”
 In order to add WebView to your application, you have to add <WebView>element to your xml
layout file.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que33 : What are the different kinds of context in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que33 : What are the different kinds of context in Android?
 this / getActivity()
 getContext()
 getBaseContext()
 getApplicationContext()
Which Context should I use in Android?
Memory leak
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que34 : What are the different storage methods in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que34 : What are the different storage methods in Android?
Android offers several options to save persistent application data. They
are:
1. Shared Preferences – Store private primitive data in key-value pairs.
2. Internal Storage – Store private data on the device memory
3. External Storage – Store public data on the shared external storage
4. SQLite Databases – Store structured data in a private database.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que35 : Can you deploy executable JARs on android? Which package is supported by it?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que35 : Can you deploy executable JARs on android? Which package is supported by it?
➢ No, Android does not support JAR deployments.
➢ Applications are packed into Android Package(.apk) using Android
Asset Packaging Tool(APT)and then deployed on to Android
platform.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que36 : What are containers?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que36 : What are containers?
✓ It hold objects and widgets together, depending on which specific items are needed and in
what particular arrangement that is wanted.
✓ Containers may hold labels, fields, buttons, or even child containers, as examples.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que37 : Can you change the name of an application after its deployment?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que37 : Can you change the name of an application after its deployment?
➢ It is not recommended to change the application after its deployment.
➢ This may break some functionality .
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que38 : Define Android application resource files?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que38 : Define Android application resource files?
✓ animator
✓ anime
✓ color
✓ drawable
✓ Mipmap
✓ xml
✓ layout
✓ values
✓ menu
✓ raw
✓ asset
It is a directory for files that define your app’s user interface. As an android developer, you can inject
files such as:
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que39 : What is the importance of an emulator in Android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que39 : What is the importance of an emulator in Android?
✓ The emulator lets you play around an interface that acts
as if it were an actual device.
✓ It let you write and test codes, and even debug.
✓ It acts as a safe place for testing codes especially if its in
the early design phase.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que40 : How are escape characters used as attribute?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que40 : How are escape characters used as attribute?
✓ Escape characters are preeceded by double backslashes.
✓ For example - a newline character is created using 'n'.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que41 : What is NDK ?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que41 : What is NDK ?
✓ NDK stands for Native Development Kit.
✓ By using NDK, you can develop a part of app using native language such as
C,C++ etc.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que42 : What are broadcast receivers?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que42 : What are broadcast receivers?
➢ Broadcast Receiver is a mechanism using which host application can listen for System level events.
➢ Broadcast receiver is used by the application whenever they need to perform the execution based on
system events. Like listening for Incoming call, sms etc.
➢ Broadcast receivers helps in responding to broadcast messages from other application or from the
system.
➢ It is used to handle communication between Android operating system and applications.
public class MyReceiver extends BroadcastReceiver {
Public void onReceive( context, intent) {}
}
It is implemented as a subclass of BroadcastReceiver class and each message is broadcaster as an Intent object.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que43 : What are the security measures that are taken to make Android secure?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que43 : What are the security measures that are taken to make Android secure?
✓ Android application uses sandbox that is very popular and allow limited
access to the information that is very private and sensitive for the user.
✓ It allows the permissions to be set for the use of the information. The
security measures that are provided by android is the use of the
encryption of the messages that allow user to remain without worry about
there phone security.
✓ They also consists of user terms and agreements that also taken care of.
✓ Device policy - App restriction Scheme – cypher.
✓ As android is open source it is not fully secure but lots of security issues
are being solved for make it more popular and bug free.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que44 : What does ADB stands for?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que44 : What does ADB stands for?
✓ ADB stands for Android Debug Bridge.
✓ It is a command line tool that is used to communicate with the emulator instance.
✓ ADB can control your device over USB from a computer, copy files back and forth, install and
uninstall apps, run shell commands, and more.
✓ It is a client-server program that includes three components:
• Client - which runs on your development machine. You can invoke a client from a shell by
issuing an ADB command. Other Android tools such as DDMS also create ADB clients.
• Server, which runs as a background process on your development machine. The server
manages communication between the client and the ADB daemon running on an emulator or
device.
• Daemon, which runs as a background process on each emulator or device instance.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que45 : How will you pass data to sub-activities?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que45 : How will you pass data to sub-activities?
✓ We can use Bundles to pass data to sub-activities.
✓ There are like HashMaps that and take trivial data types. These Bundles transport
information from one Activity to another.
Bundle b=new Bundle();
b.putString(“Email”, “abc@xyz.com”);
i.putExtras(b); //where I is intent
Syntax:
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que46 : What is Orientation in android?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que46 : What is Orientation in android?
✓ Orientation helps to represent the layout in a row or column.
✓ Values are set as either HORIZONTAL or VERTICAL.
✓ It can be set using setOrientation().
How it is done?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Android Studio?
Que47 : What database is used in Android? How does it differ
from client-server database management systems?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que47 : What database is used in Android? How does it differ
from client-server database management systems?
✓ SQLite is the open-source relational database.
✓ The SQLite engine is serverless, transactional, and self-contained.
✓ Instead of the typical client-server relationship of most database management systems, the SQLite
engine is integrally linked with the application.
✓ The library can also be called dynamically, and makes use of simple function calls that reduce
latency in database access.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que48 : Can you list and explain the four Java classes related to
using sensors on the Android platform?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que48 : Can you list and explain the four Java classes related to
using sensors on the Android platform?
➢ Sensor Manager: This class provides methods regarding the registration of sensor event listeners,
the management of data acquisition, and calibration. It also provides methods for accessing and
listing sensors.
➢ Sensor: This class creates an instance of a specific sensor, providing methods that allow you to
determine its capabilities.
➢ SensorEvent: This class provides information on a sensor event by creating a sensor event object.
➢ SensorEventListener: This interface provides two callback methods that can receive notifications of
sensor events.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que49 : What are some measures you can take to avoid ANR?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que49 : What are some measures you can take to avoid ANR?
➢ ANR is typically caused when the app performs too much on the main thread.
➢ To avoid ANR, an app should perform lengthy database or networking operations in separate
threads.
➢ For background task-intensive apps, you can alleviate pressure from the UI thread by using the
IntentService.
➢ In general, it helps to always define time-outs for all your web service calls and to remain ever
vigilant for infinite loops in complex calculations.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que50 : What is AIDL? What are the datatypes supported by AIDL ?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Interview Questions
Que50 : What is AIDL? What are the datatypes supported by AIDL ?
➢ AIDL stands 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.
✓ String
✓ List
✓ Map
✓ CharSequence
✓ Native Java data types (int,long, char and Boolean)
Data types
:
Android Interview Questions And Answers | Android Tutorial | Android Online Training | Edureka

Weitere ähnliche Inhalte

Was ist angesagt?

Aws concepts-power-point-slides
Aws concepts-power-point-slidesAws concepts-power-point-slides
Aws concepts-power-point-slidesSushil Thapa
 
7) packaging and deployment
7) packaging and deployment7) packaging and deployment
7) packaging and deploymenttechbed
 
What is Virtualization
What is VirtualizationWhat is Virtualization
What is VirtualizationIsrael Marcus
 
Microsoft Azure Fundamentals
Microsoft Azure FundamentalsMicrosoft Azure Fundamentals
Microsoft Azure FundamentalsAdwait Ullal
 
Azure container instances
Azure container instancesAzure container instances
Azure container instancesKarthikeyan VK
 
Azure fundamentals
Azure   fundamentalsAzure   fundamentals
Azure fundamentalsRaju Kumar
 
Azure Fundamentals || AZ-900
Azure Fundamentals || AZ-900Azure Fundamentals || AZ-900
Azure Fundamentals || AZ-900thisiswali
 
Mobile architecture overview
Mobile architecture overviewMobile architecture overview
Mobile architecture overviewDavid Scruggs
 
Seclore File Secure Sharepoint Walkthrough
Seclore File Secure Sharepoint WalkthroughSeclore File Secure Sharepoint Walkthrough
Seclore File Secure Sharepoint Walkthroughsiddarthc
 
Introduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingIntroduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingAmazon Web Services
 
IBM MobileFirst Reference Architecture 1512 v3 2015
IBM MobileFirst Reference Architecture 1512 v3 2015IBM MobileFirst Reference Architecture 1512 v3 2015
IBM MobileFirst Reference Architecture 1512 v3 2015Sreeni Pamidala
 

Was ist angesagt? (20)

Cloud computing
Cloud computingCloud computing
Cloud computing
 
Aws concepts-power-point-slides
Aws concepts-power-point-slidesAws concepts-power-point-slides
Aws concepts-power-point-slides
 
7) packaging and deployment
7) packaging and deployment7) packaging and deployment
7) packaging and deployment
 
What is Virtualization
What is VirtualizationWhat is Virtualization
What is Virtualization
 
Microsoft Azure Fundamentals
Microsoft Azure FundamentalsMicrosoft Azure Fundamentals
Microsoft Azure Fundamentals
 
AWS VPC Fundamentals- Webinar
AWS VPC Fundamentals- WebinarAWS VPC Fundamentals- Webinar
AWS VPC Fundamentals- Webinar
 
Azure container instances
Azure container instancesAzure container instances
Azure container instances
 
AR with vuforia
AR with vuforiaAR with vuforia
AR with vuforia
 
What is AWS?
What is AWS?What is AWS?
What is AWS?
 
Cloud computing intro
Cloud computing introCloud computing intro
Cloud computing intro
 
Azure fundamentals
Azure   fundamentalsAzure   fundamentals
Azure fundamentals
 
Azure Fundamentals || AZ-900
Azure Fundamentals || AZ-900Azure Fundamentals || AZ-900
Azure Fundamentals || AZ-900
 
AWS core services
AWS core servicesAWS core services
AWS core services
 
Security Architectures on AWS
Security Architectures on AWSSecurity Architectures on AWS
Security Architectures on AWS
 
Azure Stack Overview
Azure Stack OverviewAzure Stack Overview
Azure Stack Overview
 
Mobile architecture overview
Mobile architecture overviewMobile architecture overview
Mobile architecture overview
 
Seclore File Secure Sharepoint Walkthrough
Seclore File Secure Sharepoint WalkthroughSeclore File Secure Sharepoint Walkthrough
Seclore File Secure Sharepoint Walkthrough
 
Getting started with containers on Azure
Getting started with containers on AzureGetting started with containers on Azure
Getting started with containers on Azure
 
Introduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingIntroduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud Computing
 
IBM MobileFirst Reference Architecture 1512 v3 2015
IBM MobileFirst Reference Architecture 1512 v3 2015IBM MobileFirst Reference Architecture 1512 v3 2015
IBM MobileFirst Reference Architecture 1512 v3 2015
 

Ähnlich wie Android Interview Questions And Answers | Android Tutorial | Android Online Training | Edureka

Top 12 Reasons You Should Invest in Android App Development.pptx
Top 12 Reasons You Should Invest in Android App Development.pptxTop 12 Reasons You Should Invest in Android App Development.pptx
Top 12 Reasons You Should Invest in Android App Development.pptxBytes Technolab Inc.
 
Mobile Application Development with Android
Mobile Application Development with AndroidMobile Application Development with Android
Mobile Application Development with AndroidIJAAS Team
 
Android Interview Questions
Android Interview QuestionsAndroid Interview Questions
Android Interview QuestionsGaurav Mehta
 
Unpalspablely_cariri_anthroropolith.docx
Unpalspablely_cariri_anthroropolith.docxUnpalspablely_cariri_anthroropolith.docx
Unpalspablely_cariri_anthroropolith.docxpodod72486
 
Best Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdfBest Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdfMarie Weaver
 
Blending Creativity and Technology With Android App Development
Blending Creativity and Technology With Android App DevelopmentBlending Creativity and Technology With Android App Development
Blending Creativity and Technology With Android App Developmentamanraza23
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App DevelopmentChetnaPatil34
 
Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year  Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year Moon Technolabs Pvt. Ltd.
 
Native mobile app development pros, cons, alternatives, and cost optimization
Native mobile app development pros, cons, alternatives, and cost optimizationNative mobile app development pros, cons, alternatives, and cost optimization
Native mobile app development pros, cons, alternatives, and cost optimizationCynoteck Technology Solutions
 
Android workshop sn tech solutions
Android workshop sn tech solutionsAndroid workshop sn tech solutions
Android workshop sn tech solutionsSN Tech Solutions
 
ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...
ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...
ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...Lili Wei
 
Introduction to android mobile app development.pptx
Introduction to android mobile app development.pptxIntroduction to android mobile app development.pptx
Introduction to android mobile app development.pptxridzah12
 
001-Mobile Application.pptx
001-Mobile Application.pptx001-Mobile Application.pptx
001-Mobile Application.pptxAhmedDarre
 
Android Application Development China - ITOutsourcingChina
Android Application Development China - ITOutsourcingChinaAndroid Application Development China - ITOutsourcingChina
Android Application Development China - ITOutsourcingChinaIT Outsourcing China
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologiesjerry vasoya
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Ahsanul Karim
 

Ähnlich wie Android Interview Questions And Answers | Android Tutorial | Android Online Training | Edureka (20)

Top 12 Reasons You Should Invest in Android App Development.pptx
Top 12 Reasons You Should Invest in Android App Development.pptxTop 12 Reasons You Should Invest in Android App Development.pptx
Top 12 Reasons You Should Invest in Android App Development.pptx
 
Mobile Application Development with Android
Mobile Application Development with AndroidMobile Application Development with Android
Mobile Application Development with Android
 
yogeshmulchandaninew
yogeshmulchandaninewyogeshmulchandaninew
yogeshmulchandaninew
 
Android Interview Questions
Android Interview QuestionsAndroid Interview Questions
Android Interview Questions
 
Android interview questions
Android interview questionsAndroid interview questions
Android interview questions
 
PramodTaleCV
PramodTaleCVPramodTaleCV
PramodTaleCV
 
Unpalspablely_cariri_anthroropolith.docx
Unpalspablely_cariri_anthroropolith.docxUnpalspablely_cariri_anthroropolith.docx
Unpalspablely_cariri_anthroropolith.docx
 
Best Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdfBest Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdf
 
Blending Creativity and Technology With Android App Development
Blending Creativity and Technology With Android App DevelopmentBlending Creativity and Technology With Android App Development
Blending Creativity and Technology With Android App Development
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year  Which android app development tools deserve your attention this year
Which android app development tools deserve your attention this year
 
Native mobile app development pros, cons, alternatives, and cost optimization
Native mobile app development pros, cons, alternatives, and cost optimizationNative mobile app development pros, cons, alternatives, and cost optimization
Native mobile app development pros, cons, alternatives, and cost optimization
 
Android workshop sn tech solutions
Android workshop sn tech solutionsAndroid workshop sn tech solutions
Android workshop sn tech solutions
 
ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...
ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...
ASE 2016 Taming Android Fragmentation: Characterizing and Detecting Compatibi...
 
Introduction to android mobile app development.pptx
Introduction to android mobile app development.pptxIntroduction to android mobile app development.pptx
Introduction to android mobile app development.pptx
 
001-Mobile Application.pptx
001-Mobile Application.pptx001-Mobile Application.pptx
001-Mobile Application.pptx
 
Android Application Development China - ITOutsourcingChina
Android Application Development China - ITOutsourcingChinaAndroid Application Development China - ITOutsourcingChina
Android Application Development China - ITOutsourcingChina
 
CV_GOVINDARAO_V1
CV_GOVINDARAO_V1CV_GOVINDARAO_V1
CV_GOVINDARAO_V1
 
Android terminologies
Android terminologiesAndroid terminologies
Android terminologies
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
 

Mehr von Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

Mehr von Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Kürzlich hochgeladen

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Kürzlich hochgeladen (20)

HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Android Interview Questions And Answers | Android Tutorial | Android Online Training | Edureka

  • 1. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
  • 2. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Market and Salary Trends
  • 3. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Market Android is most used mobile technology with around 82% of all mobile phones based on Android. Operating System 1Q17 Units 1Q17 Market Share (%) 1Q16 Units 1Q16 Market Share (%) Android 327,163.6 86.1 292,746.9 84.1 IOS 51,992.5 13.7 51,629.5 14.8 Other OS 821.2 0.2 3,847.8 1.1 Total 379,977.3 100.0 348,224.2 100.0 Source: Gartner (May 2017)
  • 4. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Salary Trends Source: Indeed.com
  • 5. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions
  • 6. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que1 : What is Android? Android Interview Questions
  • 7. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions ➢ Android is a mobile operating system (OS) developed by Google. ➢ Designed for touchscreen mobile devices such as smartphones and tablet computers. ➢ Open source ➢ Written in Java ➢ Android's kernel is based on one of the Linux kernel's long-term support (LTS) branches. Que1 : What is Android?
  • 8. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que2 : What are the features of Android? Android Interview Questions
  • 9. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que2 : What are the features of Android? ✓ User Interface ✓ Messaging ✓ Web Browser ✓ Connectivity ✓ Wi-Fi Direct ✓ Multi-touch ✓ Multi-tasking ✓ Multi-Language ✓ Storage ✓ Android Beam Android Interview Questions
  • 10. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que3 : Explain Android Architecture? Android Interview Questions
  • 11. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que3 : Explain Android Architecture? Android Interview Questions
  • 12. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que4 : What are the different versions of Android? Android Interview Questions
  • 13. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que4 : What are the different versions of Android? Android Interview Questions
  • 14. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que5 : What is an activity? Android Interview Questions
  • 15. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que5 : What is an activity? ➢ An Activity is the window representation of any application in Android. ➢ It serves as an entry point for user’s interaction. ➢ Each activity has a layout file where you can place your UI. ➢ An application can have different activities. Android Interview Questions
  • 16. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que6 : Explain Activity Life Cycle? Android Interview Questions
  • 17. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que6 : Explain Activity Life Cycle? Android Interview Questions
  • 18. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que7 : What are intents? Android Interview Questions
  • 19. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que7 : What are intents? ➢ An intent is a messaging object you can use to request an action from another app component. ➢ Methods are used to deliver intents to different components: • context.startActivity() • context.startService() • context.sendBroadcast() Android Interview Questions
  • 20. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que8 : What is implicit intent? Android Interview Questions
  • 21. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que8 : What is implicit intent? Implicit intent is when the target component is not defined in the intent and the android system has to evaluate the registered components based on the intent data. Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.edureka.co")); startActivity(i); Action Specification Android Interview Questions
  • 22. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que9 : What is explicit intent? Android Interview Questions
  • 23. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Que9 : What is explicit intent? Explicit intent is when an application defines the target component directly in the intent. Intent i = new Intent(this, ActivityTwo.class); i.putExtra("Value1", "This is ActivityTwo "); i.putExtra("Value2", "This value two for ActivityTwo"); startActivity(i); Target component Android Interview Questions
  • 24. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que10 : What are the tools placed in android SDK?
  • 25. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que10 : What are the tools placed in android SDK? ➢ Android Emulator ➢ DDMS - Dalvik Debug Monitoring Services ➢ AAPT - Android Asset Packaging tool ➢ ADB - Android debug bridge
  • 26. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que11 : What is an android runtime?
  • 27. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que11 : What is an android runtime? ➢ Android Runtime consists of Dalvik Virtual machine and Core Java libraries. ➢ DVM is optimized for low processing power and low memory environments. ➢ Unlike JVM, the Dalvik Virtual Machine doesn’t run .class files, instead it runs .dex files. ➢ Android 2.2 "Froyo“ brought trace-based just-in-time (JIT) compilation into Dalvik, optimizing the execution of applications and dynamically compiling frequently executed short segments of their bytecode into native machine code.
  • 28. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que12 : What is DDMS?
  • 29. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que12 : What is DDMS? It stands for Dalvik Debug Monitor Server. It gives the wide array of debugging features: 1. Port forwarding services 2. Screen capture on the device 3. Thread and heap information 4. Logcat 5. Incoming call and SMS spoofing 6. Location data spoofing
  • 30. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que13 : Explain in brief about the important file and folder when you create new app?
  • 31. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que13 : Explain in brief about the important file and folder when you create new app? App - It describes the fundamental characteristics of the app and defines each of its components. java - This contains the .java source files for your project. By default, it includes an MainActivity.java source file. res - It is a directory for files that define your app’s user interface. Gradle Scripts - This is an auto generated file which contains compileSdkVersion, buildToolsVersion, applicationId, minSdkVersion, targetSdkVersion, versionCode and versionName.
  • 32. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que14 : What is an android manifest file?
  • 33. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que14 : What is an android manifest file? The manifest file provides essential information about your app to the Android system, which the system must have before it can run any of the app's code.
  • 34. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que15 : Name some exceptions in android?
  • 35. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que15 : Name some exceptions in android? ➢ Inflate Exception ➢ Surface.OutOfResourceException ➢ SurfaceHolder.BadSurfaceTypeException ➢ WindowManager.BadTokenException
  • 36. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que16 : Name the dialog box which are supported by android?
  • 37. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que16 : Name the dialog box which are supported by android? ➢ Alert Dialog ➢ Progress Dialog ➢ Date Picker Dialog ➢ Time picker Dialog
  • 38. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que17 : What are the core building blocks of android?
  • 39. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que17 : What are the core building blocks of android? ✓ Activity : An Activity is the screen representation of any application in Android. Each activity has a layout file where you can place your UI. ✓ Content Provider: Content providers share data between applications. ✓ Service: It is a component that runs in the background to perform long- running operations without interacting with the user and it even works if application is destroyed. ✓ Broadcast Receivers: It respond to broadcast messages from other applications or from the system itself. These messages are sometime called events or intents.
  • 40. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions
  • 41. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que18 : What is a service in Android?
  • 42. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que18 : What is a service in Android? A service in android is a background process which is used to perform long running operations. Let’s say, a service of location is active in the background while the user is in different application. So it does not disturb the user interaction with an activity. Types - Local : This service is accessed from within the application. Remote : This service is accessed remotely from other applications running on the same device. public class MyService extends Service { } It is implemented as a subclass of Service class as follows :
  • 43. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que19 : What are the different types of services?
  • 44. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que19 : What are the different types of services? Handler service Intent Service Service (AIDL) 1 2 3
  • 45. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que20 : What is the difference between Service and Thread?
  • 46. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que20 : What is the difference between Service and Thread? ❖ Service is like an Activity but has no interface. ❖ A Service is not a separate process. It works in background until the service or someone else explicitly stop it. ❖ Service is not killed when an application is killed. ❖ It expose some of its functionality to other applications by calling Context.bindService(). ❖ A Thread is a concurrent unit of execution. ❖ By default, all components of the same application run in the same process and thread (called the "main" thread). ❖ Thread is killed when an Application is killed. ❖ GOOGLE has brought in Handlers and loopers into android threads. Service Thread
  • 47. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que21 : What is a fragment?
  • 48. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que21 : What is a fragment? ➢ Fragment is a part of Activity ➢ You can combine multiple fragments in a single activity which helps to display multiple screens and reuse a fragment in multiple activities.
  • 49. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que22 : What is the difference between a fragment and an activity?
  • 50. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que22 : What is the difference between a fragment and an activity? ➢ Activity is typically a single, focused operation that a user can perform such as dial a number, take a picture, send an email, view a map etc. ➢ Fragment is a modular section of an activity, with its own lifecycle and input events, and which can be added or removed at will. Also, a fragment’s lifecycle is directly affected by its host activity’s lifecycle i.e. when the activity is paused, so are all fragments in it, and when the activity is destroyed, so are all of its fragments.
  • 51. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que23 : What does APK stands for?
  • 52. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que23 : What does APK stands for? ➢ APK stands for Android Packaging Kit. ➢ The Android packaging key is compressed with classes, UI's, supportive assets and manifest. All these files are compressed to a single file which is called as APK.
  • 53. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que24 : Does android support any other language than java?
  • 54. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que24 : Does android support any other language than java? ➢ Yes, android app can be developed in C/C++. ➢ It should be used with android NDK (Native Development Kit) and android SDK( Software Development Kit).
  • 55. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que25 : What is a content provider?
  • 56. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que25 : What is a content provider? ➢ Content providers manage access to a structured set of data. It is the standard interface that connects data in one process with code running in another process. ➢ They encapsulate the data and provide mechanisms for defining data security. ➢ Content providers are used to share the data between different applications. It is implemented as a subclass of ContentProviderclass and must implement a standard set of APIs that enable other applications to perform transactions. public class MyContentprovider extends ContentProvider { public void onCreate(){} }
  • 57. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que26 : What is a singleton class in Android?
  • 58. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que26 : What is a singleton class in Android? ➢ A singleton class is a class which can create only an object that can be shared all other classes. New Instance 1 Single InstanceNew Instance 2 Instance n
  • 59. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que27 : What’s the difference between a file, a class and an activity in android?
  • 60. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que27 : What’s the difference between a file, a class and an activity in android? It is a chunk of arbitrary information, or resource for storing information. It’s a compiled form of Java file. Android uses the .class files to produce an executable apk An activity is the comparable to a Frame/Window in GUI toolkits. It is not a file or a file type, it’s just a class that can be extended in Android for loading UI elements on view. ActivityFile Class
  • 61. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que28 : What is Dalvik Virtual Machine?
  • 62. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que28 : What is Dalvik Virtual Machine? ➢ Dalvik is the name of Android’s virtual machine. ➢ The Dalvik VM is an interpreter-only virtual machine that executes files in the Dalvik Executable (.dex) format. ➢ The virtual machine is register-based and can run classes compiled by Java language compiler that have been altered into its native format using the included ‘dx’ tool. ➢ The Dalvik core class library is envisioned to provide a familiar development base for those used to programming with Java Standard Edition, but is geared explicitly for the needs of a small mobile device.
  • 63. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que29 : What is the significance of the .dex files?
  • 64. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que29 : What is the significance of the .dex files? ➢ Android programs are compiled into ‘.dex’ (Dalvik Executable) files, which are zipped into a single .apk file on the device. ➢ ‘.dex’ files can be created by translating compiled applications written in Java. ➢ (.dex) is a format that is optimized for effective storage and memory-mappable executions.
  • 65. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que30 : What is a toast?
  • 66. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que30 : What is a toast? ➢ Toast notification is a message that pops up on the window. ➢ It only covers the expanse of space required for the message and the user’s recent activity remains visible and interactive. ➢ The notification automatically fades in and out and does not accept interaction events. Toast.makeText(ProjectActivity.this, “Your message here”,Toast.LENGTH_LONG).show(); Syntax :
  • 67. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que31 : What are the exemptions in Android?
  • 68. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que31 : What are the exemptions in Android?  InflateException : When an error conditions occur this exception is thrown.  Surface.OutOfResourceException: When a Surface is not created or resized, this exception is thrown.  SurfaceHolder.BadSurfaceTypeException: When invoked on a Surface ‘SURFACE_TYPE_PUSH_BUFFERS’, this exception is thrown from lockCanvas() method.  WindowManager.BadTokenException: This exception is thrown at the time of trying to view an invalid WindowManager.LayoutParamstoken.
  • 69. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que32 : What is the use of WebView in Android?
  • 70. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que32 : What is the use of WebView in Android?  WebView is a view that display web pages inside your application.  According to Android, “this class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.”  In order to add WebView to your application, you have to add <WebView>element to your xml layout file.
  • 71. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que33 : What are the different kinds of context in Android?
  • 72. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que33 : What are the different kinds of context in Android?  this / getActivity()  getContext()  getBaseContext()  getApplicationContext() Which Context should I use in Android? Memory leak
  • 73. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que34 : What are the different storage methods in Android?
  • 74. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que34 : What are the different storage methods in Android? Android offers several options to save persistent application data. They are: 1. Shared Preferences – Store private primitive data in key-value pairs. 2. Internal Storage – Store private data on the device memory 3. External Storage – Store public data on the shared external storage 4. SQLite Databases – Store structured data in a private database.
  • 75. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que35 : Can you deploy executable JARs on android? Which package is supported by it?
  • 76. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que35 : Can you deploy executable JARs on android? Which package is supported by it? ➢ No, Android does not support JAR deployments. ➢ Applications are packed into Android Package(.apk) using Android Asset Packaging Tool(APT)and then deployed on to Android platform.
  • 77. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que36 : What are containers?
  • 78. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que36 : What are containers? ✓ It hold objects and widgets together, depending on which specific items are needed and in what particular arrangement that is wanted. ✓ Containers may hold labels, fields, buttons, or even child containers, as examples.
  • 79. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que37 : Can you change the name of an application after its deployment?
  • 80. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que37 : Can you change the name of an application after its deployment? ➢ It is not recommended to change the application after its deployment. ➢ This may break some functionality .
  • 81. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que38 : Define Android application resource files?
  • 82. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que38 : Define Android application resource files? ✓ animator ✓ anime ✓ color ✓ drawable ✓ Mipmap ✓ xml ✓ layout ✓ values ✓ menu ✓ raw ✓ asset It is a directory for files that define your app’s user interface. As an android developer, you can inject files such as:
  • 83. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que39 : What is the importance of an emulator in Android?
  • 84. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que39 : What is the importance of an emulator in Android? ✓ The emulator lets you play around an interface that acts as if it were an actual device. ✓ It let you write and test codes, and even debug. ✓ It acts as a safe place for testing codes especially if its in the early design phase.
  • 85. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que40 : How are escape characters used as attribute?
  • 86. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que40 : How are escape characters used as attribute? ✓ Escape characters are preeceded by double backslashes. ✓ For example - a newline character is created using 'n'.
  • 87. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que41 : What is NDK ?
  • 88. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que41 : What is NDK ? ✓ NDK stands for Native Development Kit. ✓ By using NDK, you can develop a part of app using native language such as C,C++ etc.
  • 89. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que42 : What are broadcast receivers?
  • 90. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que42 : What are broadcast receivers? ➢ Broadcast Receiver is a mechanism using which host application can listen for System level events. ➢ Broadcast receiver is used by the application whenever they need to perform the execution based on system events. Like listening for Incoming call, sms etc. ➢ Broadcast receivers helps in responding to broadcast messages from other application or from the system. ➢ It is used to handle communication between Android operating system and applications. public class MyReceiver extends BroadcastReceiver { Public void onReceive( context, intent) {} } It is implemented as a subclass of BroadcastReceiver class and each message is broadcaster as an Intent object.
  • 91. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que43 : What are the security measures that are taken to make Android secure?
  • 92. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que43 : What are the security measures that are taken to make Android secure? ✓ Android application uses sandbox that is very popular and allow limited access to the information that is very private and sensitive for the user. ✓ It allows the permissions to be set for the use of the information. The security measures that are provided by android is the use of the encryption of the messages that allow user to remain without worry about there phone security. ✓ They also consists of user terms and agreements that also taken care of. ✓ Device policy - App restriction Scheme – cypher. ✓ As android is open source it is not fully secure but lots of security issues are being solved for make it more popular and bug free.
  • 93. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que44 : What does ADB stands for?
  • 94. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que44 : What does ADB stands for? ✓ ADB stands for Android Debug Bridge. ✓ It is a command line tool that is used to communicate with the emulator instance. ✓ ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, and more. ✓ It is a client-server program that includes three components: • Client - which runs on your development machine. You can invoke a client from a shell by issuing an ADB command. Other Android tools such as DDMS also create ADB clients. • Server, which runs as a background process on your development machine. The server manages communication between the client and the ADB daemon running on an emulator or device. • Daemon, which runs as a background process on each emulator or device instance.
  • 95. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que45 : How will you pass data to sub-activities?
  • 96. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que45 : How will you pass data to sub-activities? ✓ We can use Bundles to pass data to sub-activities. ✓ There are like HashMaps that and take trivial data types. These Bundles transport information from one Activity to another. Bundle b=new Bundle(); b.putString(“Email”, “abc@xyz.com”); i.putExtras(b); //where I is intent Syntax:
  • 97. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que46 : What is Orientation in android?
  • 98. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que46 : What is Orientation in android? ✓ Orientation helps to represent the layout in a row or column. ✓ Values are set as either HORIZONTAL or VERTICAL. ✓ It can be set using setOrientation(). How it is done?
  • 99. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is Android Studio? Que47 : What database is used in Android? How does it differ from client-server database management systems?
  • 100. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que47 : What database is used in Android? How does it differ from client-server database management systems? ✓ SQLite is the open-source relational database. ✓ The SQLite engine is serverless, transactional, and self-contained. ✓ Instead of the typical client-server relationship of most database management systems, the SQLite engine is integrally linked with the application. ✓ The library can also be called dynamically, and makes use of simple function calls that reduce latency in database access.
  • 101. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que48 : Can you list and explain the four Java classes related to using sensors on the Android platform?
  • 102. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que48 : Can you list and explain the four Java classes related to using sensors on the Android platform? ➢ Sensor Manager: This class provides methods regarding the registration of sensor event listeners, the management of data acquisition, and calibration. It also provides methods for accessing and listing sensors. ➢ Sensor: This class creates an instance of a specific sensor, providing methods that allow you to determine its capabilities. ➢ SensorEvent: This class provides information on a sensor event by creating a sensor event object. ➢ SensorEventListener: This interface provides two callback methods that can receive notifications of sensor events.
  • 103. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que49 : What are some measures you can take to avoid ANR?
  • 104. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que49 : What are some measures you can take to avoid ANR? ➢ ANR is typically caused when the app performs too much on the main thread. ➢ To avoid ANR, an app should perform lengthy database or networking operations in separate threads. ➢ For background task-intensive apps, you can alleviate pressure from the UI thread by using the IntentService. ➢ In general, it helps to always define time-outs for all your web service calls and to remain ever vigilant for infinite loops in complex calculations.
  • 105. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que50 : What is AIDL? What are the datatypes supported by AIDL ?
  • 106. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Interview Questions Que50 : What is AIDL? What are the datatypes supported by AIDL ? ➢ AIDL stands 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. ✓ String ✓ List ✓ Map ✓ CharSequence ✓ Native Java data types (int,long, char and Boolean) Data types :