Question

In: Computer Science

Discuss intents and their uses in Android development. Make sure you mention the two types of...

Discuss intents and their uses in Android development. Make sure you mention the two types of intents in your discussion.

Solutions

Expert Solution

Answer diven below for this question :-

•An Intent is a simple message object that is used to communicate between android components such as activities, content providers, broadcast receivers and services. Intents are also used to transfer data between activities.

•Intents are like messages that activate software components (activities,servicies,broadcast receivers)

•An Intent may be explicit when it has exactly one target

•or implicit otherwise it just specifies the action the component should provide.

•An intent can also be pending, meaning that some component will be activated in the future

•It can be broadcastwhen it announces something to broadcast receivers

•An Intent is a messaging object you can use to request an action from another app component. Although intents facilitate communication between components in several ways, there are three fundamental use cases: Starting an activity. An Activity represents a single screen in an app.

•Android supports two types of intents: explicit and implicit.

•When an application defines its target component in an intent, that it is an explicit intent.

•When the application does not name a target component, that it is an implicit intent

•Intents are used to signal to the Android system that a certain event has occurred.

•Intents often describe the action which should be performed and provide data upon which such an action should be done.

•Passing control and data from one activity to another is accomplished by asking the current activity to execute an intent.

•Intents are used generally for starting a new activity using startActivity().

• Implicit Intent

The implicit intent is the intent where instead of defining the exact components,

you define the action that you want to perform for different activities.

An Implicit intent specifies an action that can invoke any app on the device to be able to perform an action.

Using an Implicit Intent is useful when your app cannot perform the action but other apps probably can and

you’d like the user to pick which app to use.

The Intent doesn’t specify the Activity to start, but only an “Action”

Intents declares their ability to perform actions in the manifest file

There are several predefined actions in the ‘system’ to choose from

A user can define its own action as well

• explicit intent

explicit intent is an Intent where you explicitly define the component that needs to be called by the Android System.

An explicit intent is one that you can use to launch a specific app component, such as a particular activity or service in your app.

Activities are independent from each other and interact through Intents

The explicit intent targets one specific activity, for example just to change the screen

They are also used to start a service


Related Solutions

Describe language development from birth on. Make sure to mention the critical time period, Broca’s area,...
Describe language development from birth on. Make sure to mention the critical time period, Broca’s area, Wernicke’s area
explain why cellular signaling is crucial in biology. You will make sure to mention what are...
explain why cellular signaling is crucial in biology. You will make sure to mention what are the two basic signaling switches and what is the general flow of signaling in a cell
a.) Describe the structure of the GroEL/GroES complex, make sure to mention domains but no need...
a.) Describe the structure of the GroEL/GroES complex, make sure to mention domains but no need to mention secondary structures involved in the domains (1 pt) b.) Describe the roles of ATP binding and ATP hydrolysis in GroEL/GroES function.
Compare and contrast any two leadership theories and apply to group development. Be sure to discuss...
Compare and contrast any two leadership theories and apply to group development. Be sure to discuss the utility and limitations of each theory. Where in your own experience do you see these approaches to leadership utilized? To what extent do you see these two theories as being appropriate for your own leadership philosophy?
Discuss the following - make sure you discuss the strengths and weaknesses of each valuation method....
Discuss the following - make sure you discuss the strengths and weaknesses of each valuation method. Also discuss why many of these are used together and not necessarily independently to make decisions. Net present value Internal rate of return Payback Discounted payback Profitability index
Make sure you understand the two alternatives. The "make" means that KCSB assembles and ships all...
Make sure you understand the two alternatives. The "make" means that KCSB assembles and ships all of its regular bicycles. The "buy" means that KCSB pays another firm to assemble and ship some of its regular bicycles and uses the freed-up resources to make and sell specialty racing bicycles. TIP: The analysis can be simplified by ignoring all irrelevant tiems - the revenue and the costs for the bicycles that are not being outsourced. Instead, just focus on 1) the...
Make sure you understand the two alternatives. The "make" means that KCSB makes, assembles, and ships...
Make sure you understand the two alternatives. The "make" means that KCSB makes, assembles, and ships all of its bicycles. The "buy" means that KCSB makes, assembles, and ships some of its bicycles, makes some of its bicycles and pays another firm to assemble and ship them, and uses idle resources to make and sell specialty racing bicycles ______________________________________________________ King City Specialty Bikes (KCSB) produces high-end bicycles. Costs to manufacture and market the bicycles at last year's volume level of...
Make sure you understand the two alternatives. The "make" means that KCSB makes, assembles, and ships...
Make sure you understand the two alternatives. The "make" means that KCSB makes, assembles, and ships all of its bicycles. The "buy" means that KCSB makes, assembles, and ships some of its bicycles, makes some of its bicycles and pays another firm to assemble and ship them, and uses idle resources to make and sell specialty racing bicycles ______________________________________________________ King City Specialty Bikes (KCSB) produces high-end bicycles. Costs to manufacture and market the bicycles at last year's volume level of...
Make sure you understand the two alternatives. The "make" means that KCSB assembles and ships all...
Make sure you understand the two alternatives. The "make" means that KCSB assembles and ships all of its regular bicycles. The "buy" means that KCSB pays another firm to assemble and ship some of its regular bicycles and uses the freed-up resources to assemble and ship specialty racing bicycles. TIP: Ignore revenues from regular bike sales - they will be the same under both alternatives and are therefore common costs that can be ignored. ______________________________________________________ King City Specialty Bikes (KCSB)...
Mention two uses for the current sources in analog integrated circuits?
Mention two uses for the current sources in analog integrated circuits?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT