What is int on Android?

Asked 1 years ago, Updated 1 years ago, 56 views

What is the role of int in Android?

android intent android-intent

2022-09-21 21:05

1 Answers

An application rarely consists of just one activity, mostly multiple activities, services, etc., which call each component to perform the necessary tasks. The address book application alone consists of a variety of activities, including activities that show saved people and activities that add new address books.

To call another component from one component, you must say "I want to call another component." In order to express your opinion, you have to speak according to the common protocol. It's the same as communicating in a country using one language.

Android uses Intent objects as a means of this "presentation."

In Android, 'Intent' usually means an Intent object. The Intent object contains several pieces of information for calling components within the Android application, which may specify the name of the component to be called, or may list only the characteristics of the component to be called. In addition to calling the application, the called activity also delivers data to the int object when delivering results to the activity that called itself. Intent objects are similar to "delivery companies" that deliver goods. :)

If you categorize these intents by type, the content that specifies the name of the called component, which is to be called, is called Explicit Intent, and the content that lists only the characteristics of the called component is called Implicit Intent.


2022-09-21 21:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.