美文网首页
Android 在AndroidManifest文件常见的属性知

Android 在AndroidManifest文件常见的属性知

作者: mumuxi_ | 来源:发表于2024-01-09 23:05 被阅读0次

1.exported 属性知识

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

2.Application allowBackup属性
一文带你全面了解Android Backup功能

3.configChanges 属性

android:configChanges属性解析

相关文章

网友评论

      本文标题:Android 在AndroidManifest文件常见的属性知

      本文链接:https://www.haomeiwen.com/subject/mhiandtx.html