mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
update README_zh.md.
Signed-off-by: NEEN <qianli16@huawei.com>
This commit is contained in:
parent
3940b39ccd
commit
f81ef50c9c
27
README_zh.md
27
README_zh.md
@ -71,33 +71,6 @@ foundation/distributedschedule/dmsfwk
|
||||
```
|
||||
|
||||
|
||||
- **主设备程序开发**(以拉起FA为例)
|
||||
|
||||
构造意图参数want,设置需要启动的远端设备ID,包名,元能力类名信息
|
||||
|
||||
```
|
||||
import ohos.aafwk.ability.Ability;
|
||||
import ohos.aafwk.content.Want;
|
||||
import ohos.bundle.ElementName;
|
||||
|
||||
// 构造want参数
|
||||
Want want = new Want();
|
||||
ElementName name = new ElementName(remote_device_id, "ohos.dms.remote_bundle_name", "remote_ability_name");
|
||||
want.setElement(name); // 将待启动的FA信息添加到Want中
|
||||
|
||||
// 启动远程设备FA
|
||||
startAbility(want); // 按照Want启动指定FA,want参数命名以实际开发平台API为准
|
||||
```
|
||||
|
||||
- **预置条件**
|
||||
|
||||
从设备侧需安装对应包名的FA
|
||||
|
||||
- **运行**(以拉起FA为例)
|
||||
|
||||
执行主设备侧的startAbility即可拉起从设备FA
|
||||
|
||||
|
||||
## 相关仓<a name="section1371113476307"></a>
|
||||
|
||||
分布式任务调度子系统
|
||||
|
Loading…
Reference in New Issue
Block a user