• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/16

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

16 Cards in this Set

  • Front
  • Back

intent is use to launch specific components, such as activities or services.

EXPLICIT

can be added as a piece of extra information to the Intent to be received by the activity you are targeting.

Extras

many times to pass multiple values by using multiple keys, just make sure each extra has its own unique name.

putExtra()

you can store many key-value pairs and pass the said object to the intent.

bundle object

You can use the method in the next activity to get the bundle and the extras attached to it.

getExtras()

intent the component to be called is not specified; instead, you will define the action to be performed.

Implicit

received as a bundle of information by the component.

Intent object

It is a string used by the activity to specify an action to perform.

Action

It is a URI (Uniform Resource Identifier) that references the data to work on.

Data

It is a string containing the additional information about the component that will handle the intent.

Category

This is the name of the target component.

Component name

The list below shows the example category used for intent:

CATEGORY_LAUNCHER – the activity should be displayed in the toplevel launcher.


CATEGORY_BROWSABLE – the activity is allowed to be started by a web browser to display data.

indicates which activity to launch. You can also manipulate the activity stack using intent flags.

Flags

Android system will automatically ask you to choose which activity you want to use.

Intent chooser

Basically, there are four types of launch modes for activity.

1.standard


2. singleTop


3.singleTask


4. singleIntance

The following are the flags you can use to modify the behavior of your activity:



CUSTOMIZING THE LAUNCH MODE USING INTENT FLAG

1. FLAG_ACTIVITY_NEW_TASK


2. FLAG_ACTIVITY_SINGLE_TOP


3. FLAG_ACTIVITY_CLEAR_TOP