#鸿蒙学习大百科#如何缩短应用进程创建&初始化阶段耗时?

如何缩短应用进程创建&初始化阶段耗时?

HarmonyOS
2024-10-11 10:09:17
1109浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
后知后觉cy

该阶段主要是系统完成应用进程的创建以及初始化的过程,包含了启动页图标(startWindowlcon)的解码。使用合适分辨率的图标是影响体验的关键,建议使用不超过256*256分辨率的图片作为启动页面图标,以减少图片解码带来的时延。

"abilities": [
  {
    "name": "EntryAbility",
    "srcEntry": "./ets/entryability/EntryAbility.ets",
    "description": "$string:EntryAbility_desc",
    "icon": "$media:layered_image",
    "label": "$string:EntryAbility_label",
    "startWindowIcon": "$media:startIcon",//在这里修改启动页图标,建议不要超过256像素x256像素
    "startWindowBackground": "$color:start_window_background",
    "exported": true,
    "launchType": "multiton",
    "skills": [
      {
        "entities": [
          "entity.system.home"
        ],
        "actions": [
          "action.system.home"
        ]
      }
    ]
  }
],
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
分享
微博
QQ
微信
回复
2024-10-11 15:46:29
相关问题