Short Questions For Mobile Applicaiton
Short Questions For Mobile Applicaiton
It is an open-sourced operating system that is used primarily on mobile devices, such as cell
phones and tablets. It is a Linux kernel-based system that's been equipped with rich
components that allows developers to create and run apps that can perform both basic and
advanced functions.
The Google Android SDK is a toolset that developers need in order to write apps on Android
enabled devices. It contains a graphical interface that emulates an Android driven handheld
environment, allowing them to test and debug their codes.
• Linux Kernel
• Libraries
• Android Framework
• Android Applications
The Android Framework is an important aspect of the Android Architecture. Here you can find all the
classes and methods that developers would need in order to write applications on the Android
environment.
5. What is AAPT?
AAPT is short for Android Asset Packaging Tool. This tool provides developers with the ability to
deal with zip-compatible archives, which includes creating, extracting as well as viewing its
contents.
6. Describe Activities.
Activities are what you refer to as the window to a user interface. Just as you create windows in
order to display output or to ask for an input in the form of dialog boxes, activities play the
same role, though it may not always be in the form of a user interface.
7. What is the importance of having an emulator within the Android environment?
The emulator lets developers "play" around an interface that acts as if it were an actual mobile
device. They can write and test codes, and even debug. Emulators are a safe place for testing
codes especially if it is in the early design phase.
Intents displays notification messages to the user from within the Android enabled device. It can be
used to alert the user of a particular state that occurred. Users can be made to respond to intents.
These are the essential items that are present each time an Android project is created:
• AndroidManifest.xml
• build.xml
• bin/
• src/
• res/
• assets/
The use of XML-based layouts provides a consistent and somewhat standard means of setting
GUI definition format. In common practice, layout details are placed in XML files while other
items are placed in source files.
Containers, as the name itself implies, holds 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.
Developers can write and register apps that will specifically run under the Android
environment. This means that every mobile device that is Android enabled will be able to
support and run these apps. With the growing popularity of Android mobile devices, developers
can take advantage of this trend by creating and uploading their apps on the Android Market
for distribution to anyone who wants to download it.
ANR is short for Application Not Responding. This is actually a dialog that appears to the user
whenever an application have been unresponsive for a long period of time.
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.
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.
• foreground activity
• visible activity
• background activity
• empty process
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?
22. What are the different versions of Android OS that you remember?
Given below are the various versions of Android.
VERSION NAME
ANDROID 8.0 Oreo
ANDROID 7.0 – 7.1.2 Nougat
ANDROID 6 – 6.0.1 Marshmallow
ANDROID 5 – 5.1.1 Lollipop
ANDROID 4.4 – 4.4.4 KitKat
ANDROID 4.1 – 4.3 Jelly Bean
ANDROID 4.0-4.0.4 Ice Cream Sandwich
23. What is the difference between Mobile Application Testing and Mobile Testing?
Answer: Mobile app testing is the testing of applications on a device which mainly
focuses on functions and features of the application.
And Mobile Testing is the testing of the actual mobile device and focuses on mobile
features like Call, SMS, Contacts, Media Player, inbuilt browsers, etc
Answer: Java is the widely used language for Android development. It also supports
C/C++ and when used with Android SDK, it improves the performance speed too.
The below diagram describes the different layers in the Android architecture.
Linux Kernel: Linux Kernel is placed at the bottom of the software stack and is the
foundation of the Android architecture. Using Linux kernel, Android provides a
connection between the other layers of the software. It helps to develop drivers like the
keypad, display, audio for device manufacture, etc.
Hardware Abstraction Layer (HAL): HAL provides an interface between device drivers
and API framework. It consists of library modules that are specific to the hardware
component.
Application Framework (Java API Framework): The entire android functionalities are
available through the API. It consists of multiple services like Activity Manager, Resource
Manager, Notification Manager, etc., which form the environment in which the android
application runs.
Applications: The Android application is a top layer and all types of in-built applications
such as SMS, Browsers, Contact, etc are included in this top layer. It also includes third-
party applications that are installed by the user such as Games, etc.
26. Explain Android Framework.
Answer: Android framework is a set of API’s using which the Android developers write
code for the mobile apps. It contains the methods and classes to write the programming
code.
Android framework includes a different set of tools to create image pane, text field,
buttons, etc. It also includes “Activities” with which the user interacts and “Services”,
which are the programs that run in the background. It is a package of different
components like Intents, Broadcast Receivers, Content Providers, etc.
• Activity
• Intents
• Services
• Content Provider
• Fragment
Answer: Activities are the part of the mobile app which the user can see and interact
with.
For Example, if you open an SMS app which has multiple activities like create new SMS,
add a contact from the address book, write the content in the SMS body, send SMS to
the selected contact, etc.
Answer: Service is an Android component that runs in the background and acts
independently. It does not provide any user interface.
Though the services are running behind the scene, a user can continue their work on
different apps. Most of the time, the users are not aware of the services which are
running in the background. These services allow the system to kill the process without
interrupting the user’s ongoing work.
• Implicit Intents
• Explicit Intents