The role of the URI when intent is used for implicit activity jump:
Reprinted please indicate the source: http://www.cnblogs.com/rocky_yi
1. Tell the new activity where to fetch data. This is not explained.
2. ObtainMimetype to match the activity.
Using uri (such as content: // rockyproviderauthority/XXX), the system can analyze the Authority section (rockyproviderauthority ). Then, the system goes to androidmanifest. XML to find the provider class (for example, rockyprovider) whose authority is rockyproviderauthority ). The definition of provider in androidmanifest. XML is as follows:
< Provider
Android: Name = "Rockyprovider"
Android: Authorities = "Rockyproviderauthority"
/>
After obtaining the rockyprovider class, the system will call the GetType () method of this provider to obtain mimetype (all providers will implement the GetType () method ).
The obtained mimetype is used for activity matching. The intent-filter explicitly specifies that mimetype is the expected mimetype activity.
If I am not clear, you can take a look at this article.Article: Http://kb.cnblogs.com/page/78303/