0% found this document useful (0 votes)
70 views11 pages

1) What Is Android?

The document discusses various topics related to Android development including: 1) Android is an open-sourced operating system used on mobile devices like phones and tablets. 2) The Android SDK is a toolset for developers to write apps, containing an emulator to test code. 3) The Android architecture has 4 key components: the Linux kernel, libraries, framework, and applications. 4) The framework provides APIs for quick app development, while AAPT deals with app packaging and resources.

Uploaded by

mystuff stuff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views11 pages

1) What Is Android?

The document discusses various topics related to Android development including: 1) Android is an open-sourced operating system used on mobile devices like phones and tablets. 2) The Android SDK is a toolset for developers to write apps, containing an emulator to test code. 3) The Android architecture has 4 key components: the Linux kernel, libraries, framework, and applications. 4) The framework provides APIs for quick app development, while AAPT deals with app packaging and resources.

Uploaded by

mystuff stuff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

1) What is Android?

It is an open-sourced operating system that is used primarily on


mobile devices, such as cell phones and tablets
2) What Is the Google Android SDK?

It 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.

3) What is the Android Architecture?


Android Architecture is made up of 4 key components: -
Linux Kernel
- Libraries
- Android Framework
- Android Applications
4) Describe the Android Framework.
The android framework is the set of API's that allow
developers to quickly and easily write apps for android phones.
4) What is AAPT?
AAPT stands 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.
5) 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.
6) What is the use of an activity Creator?

An activityCreator is the first step towards the creation of a new


Android project. It is made up of a shell script .

8 ) Describe Activities.
An activity represents a single screen with a user interface just
like window

9) What are Intents?

An intent is to perform an action on the screen. It is mostly used


to start activity, start services and send message between two
activities.

10) Differentiate Activities from Services.

Activities can be closed, or terminated anytime the user wishes.


Services are designed to run behind the scenes, and can act
independently.
11) What items are important in every Android project?
These are the essential items that are present each time an
Android project is created: -
AndroidManifest.xml
- build.xml
- bin/
- src/
- res/
- assets/

12) What is the importance of XML-based layouts?

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.

13) What are containers?

A container is a view used to contain other


views. Android offers a collection of view classes that act
as containers for views.

14) What is Orientation?

Orientation, which can be set using setOrientation(), dictates if


the LinearLayout is represented as a row or as a column. Values
are set as either HORIZONTAL or VERTICAL. Screen
Orientation, also known as screen rotation, is the attribute of
activity element in android
15) What is the importance of Android in the mobile
market?

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.

16) What do you think are some disadvantages of


Android?

One app that runs on this particular version of Android OS may


or may not run on another version. Another disadvantage is that
since mobile devices such as phones and tabs come in different
sizes and forms, it poses a challenge for developers to create
apps that can adjust correctly to the right screen size and other
varying features and specs

17) What is adb?

ADB stands for “Android Debug Bridge,” and it is used to


communicate with a smartphone, tablet, smartwatch, set-top
box, or any other 
18) 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

19) What is ANR?

ANR stands 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.

20) Which elements can occur only once and must be


present?

the and elements must be present and can occur only once. The
rest are optional, and can occur as many times as needed.

21) How are escape characters used as attribute?

Escape characters are preceded by double backslashes”\\”. For


example, a newline character is created using ‘\\n’

22) What is the importance of settings permissions in app


development?

Permissions allow certain restrictions to be imposed primarily to


protect data and code. Without these, codes could be resulting to
defects in functionality.
23) 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.

24) 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

25) 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.

26) 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.
27) What are the different states wherein a process is
based?
There are 4 possible states: -
foreground activity
visible activity
background activity
empty process
28) How can the ANR be prevented?
Creating child thread
29) What role does Dalvik play in Android development?
Dalvik is a virtual machine, Through Dalvik , a device is able to
execute multiple virtual machines efficiently through better
memory management.
30) 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.
31) What is the proper way of setting up an Android-
powered device for app development?
Declare your application as "debuggable" in your Android
Manifest.
-Turn on "USB Debugging" on your device.
-Set up your system to detect your device.
32) Enumerate the steps in creating a bounded service
through AIDL.
1. create the .aidl file, which defines the programming interface
2. implement the interface, which involves extending the inner
abstract Stub class as well as implanting its methods. 3. expose
the interface, which involves implementing the service to the
clients.
33) What is the importance of Default Resources?
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.
34) 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.
35) When does ANR occur?
One is when there is no response to an input event within 5
seconds, and the other is when a broadcast receiver is not done
executing within 10 seconds.
36) 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.
37) What data types are supported by AIDL?
string -char Sequence -List -Map -all native Java data types like
int , long, char and Boolean
38) What is a Fragment?
A fragment is an independent Android component which can
be used by an activity
39) What is a visible activity?
It is actually visible to the user, but not necessarily being in the
foreground itself.
40) When is the best time to kill a foreground activity?
The foreground activity, being the most important among the
other states, is only killed or terminated as a last resort,
especially if it is already consuming too much memory.

41) Is it possible to use or add a fragment without using a


user interface?
Yes, it is possible to do that, such as when you want to create a
background behavior for a particular activity. You can do this
by using add(Fragment,string) method to add a fragment from
the activity.
42) How do you remove icons and widgets from the main
screen of the Android device?
To remove an icon or shortcut, press and hold that icon. You
then drag it downwards to the lower part of the screen where a
remove button appears.
43) What are the core components under the Android
application architecture?
- services
– intent
– resource externalization
- notifications
- content providers
44) What composes a typical Android application project?
A project under Android development, upon compilation,
becomes an .apk file. This apk file format is actually made up of
the AndroidManifest.xml file, application code, resource files,
and other related files.
45) What is a Sticky Intent?
Sticky Intent is also a type of Intent which allows a
communication between function and a service
46) Do all mobile phones support the latest Android
operating system?
Some Android-powered phone allows you to upgrade to the
higher Android operating system version. However, not all
upgrades would allow you to get the latest version. It depends
largely on the capability and specs of the phone, whether it can
support the newer features available under the latest Android
version.

47) What is portable wi-fi hotspot?


Portable Wi-Fi Hotspot allows you to share your mobile internet
connection to other wireless device.
48) What is an action?
An action is a description of something that an intent sender
desires.
49) What is the difference between a regular bitmap and a
nine-patch image?
In general, a Nine-patch image allows resizing that can be used
as background or other image size requirements for the target
device. The Nine-patch refers to the way you can resize the
image: 4 corners that are unscaled, 4 edges that are scaled in 1
axis, and the middle one that can be scaled into both axes.
50) What language is supported by Android for
application development?
Java and Kotlin

You might also like