Original:Http://bbs.gfan.com/android-93448-1-1.html
Today, we look at intent, yes, that is the more difficult to understand the previous thing, hope through this article, you find that the preceding sentence is actually wrong.As mentioned earlier, intent is like the two-sided glue between activity, in the literal sense: "intention, intention, purpose
The Android UI framework requires users to divide their apps into activities for scheduling through itent. One of the main activities is called by the Android launcher on the desktop. For example, for a calendar application, you need to view the calendar activity, the activity of a single event, and the activity of editing the event. In the activity for viewing the calendar, if you select an event, you need
1: Open the webpage:
Uri uri = URI. parse ("http://www.baidu.com ");Intent intent = new intent (intent. action_view, Uri );Startactivity (intent );
2: Open the map:
Uri uri = URI. parse ("Geo: 136.46, 25.15 ");Intent
1. Search for content from GoogleIntent intent = new intent ();Intent. setaction (intent. action_web_search );Intent. putextra (searchmanager. query, "searchstring ")Startactivity (intent );
2. Browse the webpageUri uri = URI. par
Chapter 5 of my Android system: interaction between activities and activities through Intent, androidintentIntent action in the activity:
Itent is an important way to directly exchange various components in the Android program. You can specify the current component to execute the task and directly exchange data with each component.At the same time,
Android intent usage Summary
Intent It should be something special in Android. You can specify
Program The action to be executed (such as view, edit, dial), and
Materials . After all settings are specified, you only need to call startactivity (), Android
System Will auto
1. To solve this problem, you must first understand what is implicit (hidden) intent and what is explicit (explicit) intent.
Explicit intent explicitly specifies the acitivity to be startedFor example, the following Java code:Intent intent = new intent (this, B. Class)
Impli
Basic functions of Intent:
An Intent object contains a set of information:
1. Component name
2. Action
3. Date
4. Category
5. Extras
6. Flags
Intent Overview
• Intent is the core component of Android. It uses messages to implement interaction between applications. Such mess
Intent It should be something special in Android. You can specify Program The action to be executed (such as view, edit, dial), and Materials . After all settings are specified, you only need to call startactivity (), Android System Will automatically find the most suitable for your specified requirements Application Program, and execute the program.The usage of
The first way, use action to jump.1, use the action jump, if there is a program in the androidmanifest.xml of an activity in the Intentfilter segment defined contains the same action, then this intent with this target action match. If type,category is not defined in this intentfilter segment, then the activity is matched. But if you have more than two programs in your phone, a dialog box will pop up to show you the message.The value of action has a lo
Android beginners (2) Activity-Toast, Intent, intentservicetoast
Link: http://www.orlion.ga/427/
1. Hide the title of an activity
In the onCreate () method of the java code of the activity, enter requestWindowFeature (Window. FEATURE_NO_TITLE); as follows:
@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);requestWindowFeature(Window.FEATURE_NO_TITLE);setContentView(R.l
What is intentFor an application, he will have multiple activities, and the jump data transfer between activities can be achieved through intent. Intent is an important way to interact with components in an Android program, not only to indicate what actions the current component wants to perform, but also to pass data between different components.
Today we'll talk about the principles and applications of intent in Android.
We've summarized several important components of Android, and I believe we have a clear understanding of these components, so let's take a look at a few common actions:
Start a Activity:Context.startActivity (Intent
Android learning notes (4) Intent basic learning, androidintentCorresponding to video tutorial Lesson 7thThis course explains intent, which is an abstract description of the action and indicates the intent. Once an intent is created, an action can be executed for it. inten i
Intent is an important way to interact with components in an Android program, not only to indicate what actions the current component wants to perform, but also to pass data between different components.-----------------------------------------------Show Intent------------------------------------------------Intent has
text ");3. It. settype ("Vnd. Android-DIR/MMS-SMS ");4. startactivity (it );
Send SMS
1. Uri uri = URI. parse ("smsto: 0800000123 ");2. Intent it = new intent (intent. action_sendto, Uri );3. It. putextra ("sms_body", "the SMS text ");4. startactivity (it );
Send MMS
1. Uri uri = URI. parse ("content: // media/externa
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.