Learn
IT Training, Android training interview questions have been designed specially to get acquainted with the
nature of questions that candidate may encounter during interview.
1.What is adb?
Adb
is short for Android Debug Bridge. It allows developers the power to execute
remote shell commands. Its basic function is to allow and control communication
towards and from the emulator port.
2.What is ANR in Android?
ANR
stands for application is not responding, basically it is a dialog box that
appears when the application is not responding.
3.What are the four essential states of an
activity?
Active
– if the activity is at the foreground
Paused
– if the activity is at the background and still visible
Stopped
– if the activity is not visible and therefore is hidden or obscured by another
activity
Destroyed
– when the activity process is killed or completed terminated
4.Which elements can occur only once and must
be present?
Among
the different elements, and elements must be present and can occur only once.
The rest are optional, and can occur as many times as needed.
5.What is an Adapter in android?
The
Adapter is used to create child views to represent the parent view items.
6.What is shared preferences in android?
Shared
preferences are the simplest mechanism to store the data in XML documents.
7.What are the key components in android
architecture?
- Linux kernel
- Libraries
- Android framework
- Android Applications
Permissions
allow certain restrictions to be imposed primarily to protect data and code.
Without these, codes could be compromised, resulting to defects in
functionality.
9.What is the function of an intent filter?
Because
every component needs to indicate which intents they can respond to, intent
filters are used to filter out intents that these components are willing to
receive. One or more intent filters are possible, depending on the services and
activities that is going to make use of it.
10.Enumerate the three key loops when
monitoring an activity
Entire
lifetime – activity happens between onCreate and onDestroy
Visible
lifetime – activity happens between onStart and onStop
Foreground
lifetime – activity happens between onResume and onPause
11.When is the onStop() method invoked?
A
call to onStop method happens when an activity is no longer visible to the
user, either because another activity has taken over or if in front of that
activity.
12.Is there a case wherein other qualifiers in
multiple resources take precedence over locale?
Yes,
there are actually instances wherein some qualifiers can take precedence over
locale. There are two known exceptions, which are the MCC (mobile country code)
and MNC (mobile network code) qualifiers.
13.What are the different states wherein a
process is based?
There
are 4 possible states:
- Foreground activity
- Visible activity
- Background activity
- Empty process
One
technique that prevents the Android system from concluding a code that has been
responsive for a long period of time is to create a child thread. Within the
child thread, most of the actual workings of the codes can be placed, so that
the main thread runs with minimal periods of unresponsive times.
15.What role does Dalvik play in Android
development?
Dalvik
serves as a virtual machine, and it is where every Android application runs.
Through Dalvik, a device is able to execute multiple virtual machines
efficiently through better memory management.
16.Define the application resource file in
android?
JSON,
XML bitmap.etc are application resources. You can injected these files to build
process and can load them from the code.
17.What is singleton class in android?
A
class which can create only an object, that object can be share able to all
other classes.
18.What is the AndroidManifest.xml?
This
file is essential in every application. It is declared in the root directory
and contains information about the application that the Android system must
know before the codes can be executed.
19.What is the proper way of setting up an
Android-powered device for app development?
The
following are steps to be followed prior to actual application development in
an Android-powered device:
- Declare your application as “debuggable” in your Android Manifest.
- Turn on “USB Debugging” on your device.
- Set up your system to detect your device.
When
default resources, which contain default strings and files, are not present, an
error will occur and the app will not run. Resources are placed in specially
named subdirectories under the project res/ directory.
21.When dealing with multiple resources, which
one takes precedence?
Assuming
that all of these multiple resources are able to match the configuration of a
device, the ‘locale’ qualifier almost always takes the highest precedence over
the others.
22.What is AIDL?
AIDL,
or Android Interface Definition Language, handles the interface requirements
between a client and a service so both can communicate at the same level
through interprocess communication or IPC. This process involves breaking down
objects into primitives that Android can understand. This part is required
simply because a process cannot access the memory of the other process.
23.What is a Fragment?
A
fragment is a part or portion of an activity. It is modular in a sense that you
can move around or combine with other fragments in a single activity. Fragments
are also reusable.
24.What is a visible activity?
A
visible activity is one that sits behind a foreground dialog. It is actually
visible to the user, but not necessarily being in the foreground itself.
25.What language is supported by Android for
application development?
The
main language supported is Java programming language. Java is the most popular
language for app development, which makes it ideal even for new Android
developers to quickly learn to create and deploy applications in the Android
environment.
About Android Training
Developing Android Apps is the foundation of our advanced Android curriculum. Online courses along with SAP training courses by Learn IT Training blends you theoretically and practically to build great apps the right way. We take you through the basics and moves on to advanced concepts in Android app development providing online classes with highly qualified professional trainers and will assist while attending the interviews even after completion of course.
Want to take a free demo to register click here:
For more details......
Visit: www.learnittraining.com
Email: contact@learnittraining.com
Phone: INDIA +91 9912989639, USA +12108585008


Comments
Post a Comment