52ky 发表于 2022-6-16 13:27:14

关于一个app设置多个桌面图标和多个入口实现.doc

在Android开发中,一个项目对应一个AndroidManifest.xml文件,里面包含了项目的一些设置,比如权限、SDK版本Activity、Service信息等。一般来说,这个文件中只有一个应用节点,这个节点表示这是一个应用程序,不管它下面有多少个Activity、Service等子节点。形象地说,本项目生成的apk安装到Android设备后,应用列表中会出现一个ICON,这个ICON就是本程序的执行入口。
但是,在某些情况下,我们需要为我们的apk设置多个执行入口,即安装后应用列表中会出现多个ICON图标,每个ICON是APP不同模块的入口点,每个模块运行在过程中不同。

(In Android development, a project corresponds to an androidmanifest XML file, which contains some project settings, such as permissions, SDK version activity, service information, etc. Generally speaking, there is only one application node in this file. This node indicates that this is an application, no matter how many child nodes such as activity and service are under it. Figuratively speaking, after the APK generated by this project is installed on the Android device, an icon will appear in the application list, which is the execution entry of this program.
However, in some cases, we need to set multiple execution portals for our APK, that is, after installation, multiple icon icons will appear in the application list. Each icon is the entry point for different modules of the app, and each module runs differently in the process.)




页: [1]
查看完整版本: 关于一个app设置多个桌面图标和多个入口实现.doc