Shows the difference between intent and implicit intent
Source: Internet
Author: User
Shows the difference between intent and implicit intent 1: It's all used to start another activity in one activity.
2: Show intent directly indicates the definition of activity to start, i.e. activity.class; implicit intent initiates activity implicitly by configuring the action in Androidmanifest.xml
3: Show intent can not launch activity across apps; implicit intent can be launched across apps
4: If you want to implicitly intent also can not be launched across the app only need to configure android:exported= "false" in the androidmanifest.xml corresponding activity.
5: When using the implicit intent to start the activity, if there are two action configuration is the same, then start the system will pop up the dialog box let you choose to start which one, then how to filter out which one you do not want to start, The method is configured in the corresponding activity configuration in Androidmanifest.xml <data android:scheme= "app" > name casually, and then in new Intent The action parameter is passed to another parameter after the Uri.parse ("App://hello") app colon followed by a parameter, write casually, so that the same actionj can be distinguished.
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.