鸿蒙系统怎么唤起微信

现在我开发了一个鸿蒙应用,点击按钮,需要打开微信,请问怎么实现

鸿蒙
2021-07-06 16:17:08
浏览
收藏 1
回答 1
回答 1
按赞同
/
按时间
没用的喵叔
3
Intent intent = new Intent();
Set<String> entities = new HashSet<>();
entities.add("android.intent.category.LAUNCHER");

Operation operation = new Intent.OperationBuilder()
        .withDeviceId("")
        .withBundleName("com.tencent.mm")
        .withAbilityName("com.tencent.mm.ui.LauncherUI")
        .withAction("android.intent.action.MAIN")
        .withFlags(Intent.FLAG_NOT_OHOS_COMPONENT)
        .withEntities(entities)
        .build();
intent.setOperation(operation);

startAbility(intent);
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
分享
微博
QQ
微信
回复
2021-07-07 11:47:54
相关问题
鸿蒙系统支持app吗?
13285浏览 • 1回复 待解决
有没有鸿蒙开发者
13524浏览 • 4回复 待解决
可以开发出鸿蒙版吗?eTS?
6621浏览 • 6回复 待解决
关于群聊朋友头像的问题!
7714浏览 • 2回复 待解决
nova7视频通话如何美颜
5303浏览 • 1回复 待解决
鸿蒙系统中的内核设计有什么优势?
1040浏览 • 0回复 待解决
还是安卓系统怎么升级鸿蒙系统
7732浏览 • 2回复 待解决