Android基础篇 AndroidManifest.xml 中 exported属性的概念

1、android:exported 是 Android中的四大组件 Activity,Service,Provider,Receiver 四大组件中都会有的一个属性。
2、android:exported 代表是否能被其他应用隐式调用。true允许被启动,false不允许被启动。
3、android:exported 默认值是由有无intent-filter决定的,如果有intent-filter,默认值为true,否则为false。
4、android:exported = false的情况下,这个Activity将只会被当前Application或者拥有同样user ID的Application的组件调用,对于其他应用,即使有intent-filter匹配,也无法打开,即无法被其他应用隐式调用。

猜你喜欢

转载自blog.csdn.net/weixin_44720673/article/details/124678648
今日推荐