HarmonyOS 如何跳转APP的系统设置页面

是否有SDK可以跳转APP的系统设置页面

HarmonyOS
2024-12-23 13:19:38
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
shlp

请参考

import { common } from '@kit.AbilityKit';

@Entry
@Component struct Index{
  build(){
    Column(){
      Button("跳转到设置")
        .onClick( ()=>{
          let context = getContext(this) as common.UIAbilityContext;
          context.startAbility({
            bundleName: 'com.huawei.hmos.settings',
            abilityName: 'com.huawei.hmos.settings.MainAbility',
            uri: 'application_info_entry',
            parameters: {
              pushParams: "com.example.test" // 应用包名
            }
          });
        })
    }.width('100%').height('100%')
  }
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
分享
微博
QQ
微信
回复
2024-12-23 15:44:39
相关问题
如何跳转系统权限设置页面
1786浏览 • 1回复 待解决
HarmonyOS app中怎么跳转系统设置
1328浏览 • 1回复 待解决
HarmonyOS 跳转系统设置页面的方法
1352浏览 • 1回复 待解决
HarmonyOS 如何跳转系统日历APP
856浏览 • 1回复 待解决
如何app跳转系统相机
6479浏览 • 1回复 已解决
如何实现跳转系统设置
2849浏览 • 1回复 待解决
HarmonyOS 如何跳转到应用设置页面
1247浏览 • 1回复 待解决
ArkTs如何跳转当前应用设置页面
3413浏览 • 1回复 待解决
HarmonyOS 怎么跳转系统页面
1047浏览 • 1回复 待解决