Android permission URI. parse
I just sorted out a copy of Android permission URI. parse.
1. Tune the web browserUri mybloguri = URI. parse ("http://xxxxx.com ");Returnit = new intent (intent. action_view, mybloguri );2. MapUri mapuri = URI. parse
Intent.It is mainly used for interaction and communication between various components of an application, and also for interaction between activities/services within the application.For example, you can call an external program in an application,
Intent redirects to the dial-up interface, contact interface, SMS interface, and other interfaces in the system application.
Now, the functions under development need to jump directly to the dialing, contact, text message interface, and so on. After
Use of Android URI (Universal Resource Identifier)
Uri 1. Universal Resource Identifier ("URI "). Uri indicates the data to be operated. Each type of resource available on Android-images and video clips can be represented by Uri. A URI is generally
The following content is reproduced from: http://shazhuzhu1.iteye.com/blog/1095694
Android calls system programs
1. Search for content from Google
Intent intent = new intent ();
Intent. setaction (intent. action_web_search );
Intent. putextra
Android intent usage
1. Start a new Activity
Intent it = new Intent (Activity. Main. this, Activity2.class );
StartActivity (it );
2. pass data to the next Activity (use Bundle and Intent. putExtras)
Intent it = new Intent (Activity. Main.
Android built-in applications
Intent jump to the dial-up interface, contact interface, text message interface, and other functions in the system application need to jump directly to the dial-up, contact, text message interface, and so on, find a lot
1. Search for content from google
Intent intent = new Intent ();
Intent. setAction (Intent. ACTION_WEB_SEARCH );
Intent. putExtra (SearchManager. QUERY, "searchString ")
StartActivity (intent );
2. Browse the webpage
Uri uri = Uri. parse
Android built-in applications
Intent jump to the dial-up interface, contact interface, text message interface, and other functions in the system application need to jump directly to the dial-up, contact, text message interface, and so on, find a lot
I have found two methods, which are summarized as follows:
Method 1:
Uri uri = URI. parse ("http://blog.csdn.net/u0fly"); intent it = new intent (intent. action_view, Uri); startactivity (it );
Method 2:
Intent mintent = new intent ();
Display webpage:1. Uri uri = URI. parse ("http://www.google.com ");2. Intent it = new intent (intent. action_view, Uri );3. startactivity (it );
Display map:1. Uri uri = URI. parse ("Geo: 38.899533,-77.036476 ");2. Intent it = new intent (intent.
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.
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
In Android, a code is used to address dialing, locating, webpage, uninstalling, installing, playing, email, text message, and Android.
// The following is a commonly used Intent URI and its example, including the common Intent used in most
C/C ++ code
// Call the browser
Uri uri = Uri. parse ("");
Intent it = new Intent (Intent. ACTION_VIEW, uri );
StartActivity (it );
Copy to clipboard C/C ++ code
// Display a coordinate on the map
Uri uri = Uri. parse ("geo: 38.899533,-77.036
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.
★
I. Intent Functions
Intent is frequently used in Android. Intent is used for system functions, whether it is page transfer, data transfer, or external program call.
Android has three basic components: Activity, service, and broadcastreceiver. They
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
I. Intent Functions
Intent is frequently used in Android. Whether it is page transfer, data transfer, or external callProgramIntent is required for all system functions.
Android has three basic components: Activity, service, and
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.