I've never been very clear about the properties of the data tag in the Activity tab of the Androidmanifest.xml in the Intent-filter, looking at the Dev guide and searching the web for a lot of relevant information on the Internet, now the data tag attribute meaning to make a summary. First, the definitionscheme, host, port, Path, Pathprefix, Pathpattern are used to match the Data Uri in Intent. The specific
Android implicit intent configuration, android intent
URL: http://www.cnblogs.com/wuyudong/p/5677473.html.
The Android explicit activation of another Actitity article introduces a method for activating Activity.
This document uses the configuration file AndroidManifest. xml
does not have a category (that is, the Type field is null), it should always pass the type test, regardless of the category in the filter. However, Android treats allContext. startactivity ()It seems that they contain at least "android. Intent. Category. Default" (corresponding to the category_default constant ). Therefore, to receive an implicit
Native actions (Native activity) are static string constants (static final String) in the intent class.
These actions can be applied when an implicit intent is created to start an activity or subactivity within an application.
Android apis:http://developer.android.com/reference/android/content/intent.html
Mainly inc
. setAction (Intent. ACTION_CALL); // Where ACTION_CALL is the static member variable of the Intent class, which can be called directly by the class // corresponding string "android. intent. action. CALL"
2. Data attributesThe Action attribute describes an "Action" for the Intent
the filter. However, with an exception, Android treats all the implicit intents passed to context. startactivity () as if they contain at least "android. Intent. Category. Default" (corresponding to the category_default constant ). Therefore, to receive an implicit intent, the activity must include "
this test, regardless of which category is declared in the filter.Note: Android automatically applies the CATEGORY_DEFAULT category to startActivity() startActivityForResult() All implicit Intent that are passed to and. Therefore, if you want Activity to receive implicit Intent, you must "android.intent.category.DEFAULT" include the category in its
Last introduced to you how to achieve a jump Method of the A-B in the app, this time I will introduce you to how to use the explicit intent of intent to access the system app.
1: Intent Introduction
Intent data transmission can be divided into explicit and implicit intent. e
We've learned how to invoke an activity in a single application of our own. However, one of the more important developments in Android is the use of intent to invoke other application activity. In particular, your application can invoke many "built-in" applications in the system. The so-called "built-in" application, refers to the same level of application, such as browser,phone,sms and so on. For example,
Explicit intent Definition: Intent that explicitly specifies the name of the target component is called an explicit intent. Explicit intent uses the component name to define the target component directly. However, because developers often do not know the component names of other applications, explicit
Intent is frequently used in Android. Intent is used for system functions, whether it is page redirection, data transmission, or external program calling. After some intent examples, I sorted out the intent and hoped it would be useful to everyone. Because there are too many
Intent is an abstract description of the action to be executed. It is generally used as a parameter and is used by Intent to facilitate communication between android components. Intent in Android can be understood as a media or messenger for communication between different c
Differences between android Intent PendingIntent and android intent
Meaning: intent indicates the intention. pending indicates the upcoming or coming thing.The PendingIntent class is used to handle upcoming events. For example, in Notification, it is used to jump to a page,
attribute provides operation Data for the Action attribute of the Intent object. The Type attribute is used to specify the MIME Type corresponding to the specified Uri of the Data. This Type can be any custom MIME Type, as long as the string conforms to the abc/xyz format. Note that the Type and Data attributes usually overwrite each other. If you want the Intent to have both the Data attribute and the Typ
system events, and you can also send broadcasts ( sendBroadcast() , sendOrderedBroadcast() , or sendStickyBroadcast() ).
These intent pass, and there will be no overlap. The broadcast intent is passed only to receiver, never to the activity or service, and a intent to the activity is delivered only to the activity, never to a service or receiver. ; and so o
include "android. intent. category. DEFAULT" in the intent filter ".
Note: "android. intent. action. MAIN" and "android. intent. category. LAUNCHER" are set to mark new tasks started b
as settings that define the action to open different interfaces for the "set" application in the system to complete the specified configuration (such as WLAN setup, language settings, and so on).
You can specify intent action by calling the Setaction () method of the intent object or in the intent constructor.
If you define your own action, be sure to prefix t
Overview and usage of Intent in Android
The Intent in Android is a very important and commonly used class. It can be used to start another component in the App or another component in the App, the components mentioned here refer to Activity, Service, and Broadcast.
Intent us
of launcher. they do not need "android. intent. category. default ".) data Test
...EachThe element specifies a URI and a data type. each part of Uri has different attributes: Scheme, host, port, path: Scheme: // host: Port/path. For example, in the following URI: Content: // COM. example. project: 200/folder
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.