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
First, prefaceThe past has been confused about what is the URI what is the URL, it is time to make a good understanding of them! This article as a study note, in order to query later, if there are flaws please correct me!Second, from the URI.1.
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 following is the commonly used intent Uri and its example, including the common intent used in most applications.
1. Open a webpage. the category is intent. action_view.
Uri uri = URI. parse ("http://blog.3stdy.com /");
Intent intent = new
Java.net
Class URI
public final class URI
Extends object
Implements comparable
>, Serializable
Indicates a Uniform Resource Identifier (URI) reference.
Except for some minor differences mentioned below, such instances represent a URI
Some URIs about contacts:To manage the URI of a contact:ContactsContract.Contacts.CONTENT_URIThe URI of the phone that manages the contact:ContactsContract.CommonDataKinds.Phone.CONTENT_URITo manage the URI of the contact's
One, direct calls, and three different is that this direct call, rather than open the dial-up interface Uri uri = uri.parse ("tel:10086"); Intent Intent = new Intent (Intent.action_call, URI); Second, open the dial-up interface, type is
Reference: http://www.oschina.net/code/snippet_166763_6502The following is the URI of the commonly used intent and its examples, including the common intent used in most applications. One, open a Web page, the category is Intent.action_viewuri uri =
There are more than one page URL, I need to see if the Web page is normal, I recently found that it hurts, I want to copy the URL one by one, put into the address bar, this once the URL of a number, really hurt, the beginning do not know how to
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.