Discover android intent action view, include the articles, news, trends, analysis and practical advice about android intent action view on alibabacloud.com
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 Broa
In the first article, we've seen how to use intent to launch new application components, but in fact they can also use the Sendbroadcast method to broadcast messages anonymously between components.As a system-level messaging mechanism, intent can send structured messages between processes. Therefore, the broadcast receiver is implemented to monitor and respond to these broadcast
1. Intent. action_chooser = "android. Intent. Action. chooser" indicates an activity selector.Intent provides a static createchooser method, allowing us to easily create such an intent. For specific usage examples, refer to the startwallpaper function of launcher. Java in th
components and instructions on how to start the target activity ). The following lists its main information:
2.1 component name
Name of the component that processes intent. This field isComponentnameObject -- is the fully qualified class name of the target component (for example, "com. example. project. app. freneticactivity ") and the name of the package where the application is located in the list file (for example," com. example. project. The
Android Application Framework with borderless design intent, android with borderless design intent
The description of the feature space outside the Android Application Framework is clearly described in the SDK documentation, and the basic concepts and component lifecycles of
Intent in Android is a very important class, and if you're not particularly knowledgeable about intent, see "How to use intent in Android." If you are not particularly familiar with intent filter, see "Detailed
Reprinted!
Intent is a run-time binding mechanism that connects two different components while the program is running. With intent, your program can express a request or willingness to Android. Android selects appropriate components based on the content you want to complete the request. For example, if an activity want
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
intent and describe the benefits of the intent mechanism. Since intent is used in the SMS program, I will take the opportunity to follow this line to thoroughly introduce intent. There are two articles:
1. Android development tour: intents and
, etc. You can refer to the Android.content.intent class in the Android sdk-> reference, where all the action is defined in constants.
Some of the most common action:
Action_call activity initiates a call.
The Action_edit activity displays the data edited by the user.
Action_main activity starts as the first activity in a task
Action_sync activit
The usage of Android intent is summarized comprehensively.
Intent is something special in Android. You can specify the action (such as view, edit, and dial) to be executed by the program in
An android application consists of four components: Activity, intent, service, and content provider. 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 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 associa
use the action defined in intent. Here are the actions that are often used to start activity:
Action_view:
When you invoke the StartActivity () method to start the activity, use this action to render some information to the user, such as viewing a photo in the album, showing a geographic location in the map.
Action_send:
Also known as
();
// --- Use the putextra () method to return some
// Value ---
I. putextra ("age3", 45 );
// --- Use the setdata () method to return some value ---
I. setdata (URI. parse ("something passed back to main activity "));
// --- Set the result with OK and the intent object ---
Setresult (result_ OK, I );
// --- Destroy the current activity ---
Finish ();
}
}
5. The code in androidmanifest. xml.[Java]
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.