0% found this document useful (0 votes)
18 views2 pages

Android Development Concepts Explained

Activities can be closed anytime but services are designed to run continuously in the background. Some qualifiers like MCC and MNC can take precedence over locale. AIDL handles interface requirements between a client and service for interprocess communication. The foreground activity is only killed as a last resort if it is consuming too much memory. ANR is an application not responding dialog. Orientation sets a LinearLayout as a row or column. AndroidManifest declares app info the system needs before code execution. A fragment is a modular and reusable part of an activity.

Uploaded by

Saber Arthuria
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)
18 views2 pages

Android Development Concepts Explained

Activities can be closed anytime but services are designed to run continuously in the background. Some qualifiers like MCC and MNC can take precedence over locale. AIDL handles interface requirements between a client and service for interprocess communication. The foreground activity is only killed as a last resort if it is consuming too much memory. ANR is an application not responding dialog. Orientation sets a LinearLayout as a row or column. AndroidManifest declares app info the system needs before code execution. A fragment is a modular and reusable part of an activity.

Uploaded by

Saber Arthuria
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/ 2

Question: Differentiate Activities from Services.

Answer: Activities can be closed, or terminated anytime the user wishes. On the other hand,
services are designed to run behind the scenes, and can act independently. Most services
run continuously, regardless of whether there are certain or no activities being executed.

Question: Is there a case wherein other qualifiers in multiple resources take precedence
over locale?

Answer: 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.

Question: What is AIDL?

Answer: 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.

Question: When is the best time to kill a foreground activity?

Answer: 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.
When a memory paging state has been reach by a foreground activity, then it is killed so
that the user interface can retain its responsiveness to the user.

Question: What is ANR?

Answer: 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.

Question: What is Orientation?


Answer: 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.

Question: What is the AndroidManifest.xml?

Answer: 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.

Question: What is a Fragment?

Answer: 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.

You might also like