I. The role of IntentIntent is an abstract description of the action to be performed, typically used as a parameter, by Intent to assist in the communication between the various components of the Android. For example, call StartActivity () to start an activity, or by broadcaseintent () to all interested broadcasereceiver, or by StartService ()/ Bindservice () to start a backend service. So it can be seen that inte
The following is the commonly used intent Uri and its example, including the common intent used in most applications.
1. Open a webpage. the category is intent. action_view.
Uri uri = URI. parse ("http://blog.3stdy.com /");
Intent intent = new
We know that intent is primarily used to activate Android components, so how exactly is it activated? Can I bring Java objects when I activate? Why should objects be serialized before they are passed?
First, intent official website explanationintent can be used by startactivity to load an activity, or it can be sent to a specified Broadreceiver component by Broadcastintent,Or be startservice, bingservice t
What is Intent? Let's take a look at the definition on the Android Official Website:
An intent is an abstractdescription of an operation to be performed med. it can be used with startActivity tolaunch an Activity, broadcastIntent tosend it to any interestedBroadcastReceiver components, and startService (Intent) or bindService (
Intent is a run-time binding (Run-time binding) mechanism that connects two different components during program operation. By intent, your program can express some kind of request or intention to Android, and Android will select the appropriate component to complete the request based on the content of the intention. For example, there is an activity that wants to open a Web browser to see the content of a W
Android does not need to parse explicit intent because the target component is clear. Android needs to parse implicit intent, map intent to the activity, intentreceiver, or service that can process the intent.The intent parsing mechanism mainly finds the matching intent by f
Intent is the communication between different components, encapsulating the conditions of communication between different components. Intent itself is defined as a category (class), a Intent object that expresses a purpose (Goal) or expectation (expectation), describes the service or action it expects, the data associated with the action, and so on. Android, base
Objective:Each application has a number of activity components, each of which is a window into which the application interacts with the user and presents a different interactive interface. Because each acticity task is different, it often jumps between activities, and in Android This is done by intent. You send a intent to the system through the StartActivity () method, and the system will help you find the
Android learning notes-Intents and Intent Filters (1), androidintents
My mailbox: JohnTsai.Work@gmail.com, welcome to discuss.
Welcome to reprint, reprint please note the web site: http://www.cnblogs.com/JohnTsai/p/3991792.html
Knowledge Point: definitions, functions, and usage of Intents and Intent Filters.
IntentIntent refers to "Intent". As it means, it
Android Intent source code learningPreface this article mainly introduces Android Intent and analyzes the Intent query and matching process from the Android source code perspective.Intent introduces the meaning of Intent in Chinese as "Intent", and
The intent in Android is described in detail in {
Tagshow (Event)
} "> The Android app consists of four components. For details about these four components, see" Composition of Android apps ".
These four components are independent and can be called and coordinated to form a real Android Application.
The communication between these components is mainly completed with intent assistance.
Intent is a class used in Android to invoke other components, and through intent we can easily invoke Activity,broadcast receiver and service.
Intent Intent = new Intent (intent.action_view);
Intent.setdata (Uri.parse ("http://www.baidu.com"));
StartActivity (
This article describes the common functions of Intent in Android.1 Intent. ACTION_MAINString: android. intent. action. MAINIdentifies Activity as the beginning of a program. It is commonly used.Input: nothingOutput: nothing2 Intent. Action_CALLStirng: android. intent. action
Intent Composition
Intent can contain action, data (expressed by URI), extra data (key/value map, key-value Pair), and the specified class name (become component name ). An intent must carry at least one of the preceding content.
Action. The Action name. Two examples have been provided in the previous note. One is built-in, such as
Android intent usage Summary
Blog type:
Android
Androidgooglef #
Display webpage
1. Uri uri = URI. parse ("http://google.com ");2. Intent it = new intent (intent. action_view, Uri );3. startactivity (it );
Show Map
1. Uri uri = URI. parse ("Geo: 38.899533,-77.036476 ");2.
An android application consists of four components. For details about these four components, see "Composition of Android Applications ".
These four components are independent and can be called and coordinated to form a real Android Application.
The communication between these components is mainly completed with intent assistance.
Intent describes the actions, actions involving data, and additional dat
Now the development of functions need to jump directly to dial, contact, SMS interface and so on, find a lot of information, self-organized a bit.1, jump to the dial-up interface, the code is as follows:1) Call directly
Intent Intentphone = new Intent (Intent. Action_call, Uri. Parse ("Tel:" + phonenumber));StartActivity (Intentphone);
2) Jump to dial-up i
// Display the webpage
Uri uri = URI. parse ("http://google.com ");
Intent it = new intent (intent. action_view, Uri );
Startactivity (it );
// Display the map
Uri uri = URI. parse ("Geo: 38.899533,-77.036476 ");
Intent it = new intent (
Description of Intent attributes 2. Action, Category, and intentcategory
First look:
1. Action: actions that can be executed by the activity
This identifier indicates the actions that the activity can perform. If any of the actions listed in
Common actions are as follows:
ACTION_CALL activity starts a call.
ACTION_EDIT activity displays edited data.
ACTION_MAIN activity is started as the first Activity in the Task.
ACTION_SYNC activity synchronizes d
For example, I'm going to jump to the B interface or the C interface from the A interface now.In that case, I need to write 2 intent. If you still want to involve the value of the intent, you will write two times to add the value of the method so if I use 1 bundle directly to save the value first and then save to the intent is not more concise?
Another example i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.