You are on page 1of 4

CS128-8_OL171_2Q2021 02/05/2021

Name: Basañez Jr., Noel D. FA2.2: HW

SUMMARY

The Intent Class an abstract description of an operation to be performed. An Intent


provides a facility for performing late runtime binding between the code in different applications.
Its most significant use is in the launching of activities, where it can be thought of as the glue
between activities. It can be used with Context#startActivity(Intent) to launch an Activity,
broadcastIntent to send it to any interested BroadcastReceiver components, and
Context.startService(Intent) or Context.bindService(Intent, ServiceConnection, int) to
communicate with a background Service. Hence, it is basically a passive data structure holding
an abstract description of an action to be performed.

On the other hand, permissions help support user privacy by protecting access to: a.
restricted data, such as system state and a user's contact information; and b. restricted actions,
such as connecting to a paired device and recording audio.

Lastly, the Fragment Class represents a reusable portion of your app's UI. A fragment
defines and manages its own layout, has its own lifecycle, and can handle its own input events.
Fragments cannot live on their own--they must be hosted by an activity or another fragment. The
fragment’s view hierarchy becomes part of, or attaches to, the host’s view hierarchy. Thus,
fragments introduce modularity and reusability into your activity’s UI by allowing you to divide
the UI into discrete chunks.
CS128-8_OL171_2Q2021 02/05/2021

SAMPLE SCREENSHOTS OF THE MAIN TOPICS

Screenshot 1. The Intent Class - Part 1

Screenshot 2. The Intent Class - Part 2


CS128-8_OL171_2Q2021 02/05/2021

Screenshot 3. Permissions

Screenshot 4. The Fragment Class - Part 1


CS128-8_OL171_2Q2021 02/05/2021

Screenshot 5. The Fragment Class - Part 2

You might also like