143 Star 1.3K Fork 1.5K

OpenHarmony/applications_app_samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.md 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
yuandongping 提交于 23天前 . 修改失效链接

Mission Manager

Introduction

This sample calls APIs related to the mission manager to lock, unlock, and clear missions, and switch them to the foreground.

Concepts

Mission manager: You can lock, unlock, and clear missions, and switch them to the foreground.

Required Permissions

ohos.permission.MANAGE_MISSIONS

Usage

  1. Pull down the sample app to obtain the mission information, including the bundle name, running status, locking status, mission snapshot, and whether the mission supports migration. Information about a maximum of 10 missions can be obtained.

  2. Swipe left on the mission list and touch Lock to lock a mission.

  3. If the mission is locked, touch Unlock to unlock it.

  4. Touch Delete to delete a mission.

  5. Touch Move to switch a mission to the foreground.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample supports only the SDK of API version 9 and uses the system API @ohos.application.missionManager. Therefore, you must manually switch to the Full SDK for successful compilation. For details about the operation, see Guide to Switching to Full SDK.

  3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.

  4. The permission ohos.permission.MANAGE_MISSIONS is at the system_core level. Therefore, you must manually configure the signature for the corresponding permission level. For details about the permission level, see Permission List. For details about the configuration operation, see Having Your App Automatically Signed.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/applications_app_samples.git
git@gitee.com:openharmony/applications_app_samples.git
openharmony
applications_app_samples
applications_app_samples
master

搜索帮助