Activity
In Android, activity is the foundation of all programs, and the processes of all programs run in activity. activity has its own life cycle (see activities ).
For an activity, the key is its life cycle (for example,), followed by the state storage and recovery (onsaveinstancestate onrestoreinstancestate), and inter-activity jump and data transmission (intent ).
Common functions in activity include setcontentview () findviewbyid () finish () s
Intent. Action for Android Development
1 Intent. ACTION_MAIN
String: android. intent. action. MAIN
Identifies Activity as the beginning of a program. It is commonly used.
Input: nothing
Output: nothing
2 Intent. Action_CALL
Stirng: android. intent. action. CALL
Call the s
This article describes the common functions of Intent in Android.
1 Intent. ACTION_MAIN
String: android. intent. action. MAIN
Identifies Activity as the beginning of a program. It is commonly used.
Input: nothing
Output: nothing
2 Intent. Action_CALL
Stirng: android. intent
Intent is used to start Activity,service, as well as broadcastreceiver three of components, and is an important medium for communication between components.
Advantages of using intent to start components
1, Intent provides a consistent programming model for the startup of components. Regardless of whether the component you want to start is Activity,service or b
1. Call Dialing Program
To mobile service 10086 call
uri uri = uri.parse ("tel:10086");
Intent Intent = new Intent (intent.action_dial, URI);
StartActivity (Intent);
2. Send SMS or MMS
Send 10086 sms
uri uri = uri.parse ("smsto:10086") with content "Hello";
In
Import Android. App. activity;
Import Android. content. intent;
Import android.net. Uri;
Import android.net. Uri. Builder;
Import java. Io. file;
Import Android. content. intent;
// Customize the android intent class,
// You can obtain the intent used to open the following files.
// PDF, PPT, Word, Exce
Intents and Intent Filters three types of application basic componentsActivity, service, and broadcast receiver--are activated using a message called intent.Intent messaging is a mechanism for running-time binding between components. Intent is a intent object that contains a description of what needs to be done, or, for a broadcast, contains the message content b
IntentIt should be something special in Android. You can specifyProgramThe action to be executed (such as view, edit, dial), andMaterials. After all settings are specified, you only need to call startactivity (), AndroidSystemWill automatically find the most suitable for your specified requirementsApplicationProgram, and execute the program.
★Intent Daquan:
1. Search for content from Google
Intent
Intent jump to the system application in the dial-up interface, contact interface, SMS interface and other features in the development now need to jump directly to dial, contact, SMS interface and so on, find a lot of information, self-organized a bit.First, we look at the dial-up interface, the code is as follows:Intent Intent =new Intent (); Intent.setaction ("
Understanding intent and intentfilter -- Understanding intent and intentfilter
Intent (intent) is a very important component in Android. It is a bridge and link connecting different applications and also enables component-Level Reuse (activity and service) this may be an important reason.
1. OverviewThe three core components of an application, activities, services, and broadcast receivers, are all activated through messages called intents. Intent messages are a mechanism for delayed runtime binding between components in the same or different applications. Intent itself is an Intent object). It is a passive data structure that stores an abstract de
Recently, in the course of Android development, it is difficult to pass the intent to the calling component and complete the component invocation, and intent learning is a little bit of knowledge, and recently took some time for this, the intent part of the systematic learning and some practice, The following will be their own learning and
Basic Components of intents and intent FiltersActivity, service, and broadcast Receiver -- are activated using messages called intent.
Intent message transmission is a mechanism for binding between components during runtime. intent is an intent object, which contains the de
[Code] Call the dialup Program1 // call mobile customer service 10086
2 Uri uri = Uri. parse ("tel: 10086 ");
3 Intent intent = new Intent (Intent. ACTION_DIAL, uri );
4 startActivity (intent );
[Code] send SMS or MMS01 // send a "Hello" text message to 10086
02 Uri uri = Ur
I. Intent Introduction:Intent's Chinese meaning is "intention, intention", in Android provides the intent mechanism to assist the interaction between the application and communication, intent is responsible for the application of the action, the action involved in data, additional data description, Android according to this i
Original: Android:intents TutorialDarryl BaylissTranslator: Kmyhy
People don't wander aimlessly, and most of the things they do--like watching TV, shopping, writing the next killer app----have a specific purpose or intent, namely intent.Android is the same. Before an app does something, it needs to know the purpose or intent of the thing before it can do the whole thing correctly.This shows that people
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
Common Intent usage in Android-Part 1 (source code download)
Send SMS
When sending a text message, the action we want to use isIntent.ACTION_SENDTOAnd the URI issmsto:Protocol to ensure that the SMS application receives and processes our intent objects, rather than other applications, so as to accurately send SMS messages. If our action is notIntent.ACTION_SENDTO,Intent.ACTION_SENDAnd is not specifiedsmsto
http://www.oschina.net/question/565065_67909Http://www.cnblogs.com/hummersofdie/archive/2011/02/12/1952675.htmlHere is a list of commonly used intent URIs and their examples, including the common intent used in most applications.First, open a Web page, the category is Intent.action_viewUri uri = uri.parse ("http://blog.3gstdy.com/");Intent
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 intent and the information required when the program executes the action. After startactivity () is called, the android system will automatically find the application
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.