当前位置: 首页 > wzjs >正文

京东的网站建设分析网站建设 方案 评价表

京东的网站建设分析,网站建设 方案 评价表,有哪些好的做网站公司好,怎么做优化网站排名在开发OpenHarmony的时候,经常遇到需要把所有测试功能的hap做成一个hap的需求。显然如果一个hap内集成所有测试hap的方案需要花费较大时间成本且各个测试hap之间api并不统一。这里采用应用间跳转的方式。 参考资料 官方文档:应用间跳转概述https://gite…

在开发OpenHarmony的时候,经常遇到需要把所有测试功能的hap做成一个hap的需求。显然如果一个hap内集成所有测试hap的方案需要花费较大时间成本且各个测试hap之间api并不统一。这里采用应用间跳转的方式。

  • 参考资料
    • 官方文档:应用间跳转概述
    • https://gitee.com/scenario-samples/pull-other-app

实现思路

1.这里采用指定Ability方式(即显式Want)拉起其他应用方式。

import Want from '@ohos.app.ability.Want';
import common from '@ohos.app.ability.common';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { BusinessError } from '@ohos.base';@Entry
@Component
struct Index {context = getContext(this) as common.UIAbilityContext;navPathStack: NavPathStack = new NavPathStack();@StylescommonButton() {.width(250).margin(5)}build() {Navigation(this.navPathStack) {Column() {Text('通过startAbility拉起:')Button('跳转系统相机').onClick(() => {let want: Want = {bundleName: 'com.ohos.camera',abilityName: 'com.ohos.camera.MainAbility',};this.context.startAbilityForResult(want).then((data) => {hilog.info(0x0000, 'Success', JSON.stringify(data))}).catch(() => {hilog.info(0x0000, 'error', '')})}).commonButton()Button('跳转系统设置wifi页面').onClick(() => {let want: Want = {bundleName: 'com.ohos.settings',abilityName: 'com.ohos.settings.MainAbility',uri: 'wifi', // 对应wifi设置页,不传就跳转系统设置首页/当前所在页};this.context.startAbility(want).then(() => {}).catch((err: BusinessError) => {hilog.error(0x0000, 'Failed to startAbility. Code:', `${err.code}${err.message}`);});}).commonButton()Button('跳转系统设置蓝牙页面').onClick(() => {let want: Want = {bundleName: 'com.ohos.settings',abilityName: 'com.ohos.settings.MainAbility',uri: 'bluetooth', // 对应wifi设置页,不传就跳转系统设置首页/当前所在页};this.context.startAbility(want).then(() => {}).catch((err: BusinessError) => {hilog.error(0x0000, 'Failed to startAbility. Code:', `${err.code}${err.message}`);});}).commonButton()Button('跳转系统音乐应用').onClick(() => {let want: Want = {bundleName: 'ohos.samples.distributedmusicplayer',abilityName: 'ohos.samples.distributedmusicplayer.MainAbility',uri: 'bluetooth', // 对应wifi设置页,不传就跳转系统设置首页/当前所在页};this.context.startAbility(want).then(() => {}).catch((err: BusinessError) => {hilog.error(0x0000, 'Failed to startAbility. Code:', `${err.code}${err.message}`);});}).commonButton()}.width('100%').height('100%')}.title('拉起系统及三方应用')}
}

snapshot_20250226_172037.jpeg

本样例源码

https://gitee.com/from-north-to-north/OpenHarmony_p7885/blob/master/hap/easy_demo/demo_tiaozhuan/README.md


文章转载自:

http://bTe2NWMs.qLxgc.cn
http://ZaM2zC3W.qLxgc.cn
http://ibBSDlfa.qLxgc.cn
http://JW9c6RmZ.qLxgc.cn
http://9oR1oVHx.qLxgc.cn
http://Dvwv3G8Q.qLxgc.cn
http://rUKMgMEy.qLxgc.cn
http://mACGdzx3.qLxgc.cn
http://N2zqjSA1.qLxgc.cn
http://NMUEWc31.qLxgc.cn
http://dB7JPrHT.qLxgc.cn
http://xSzR1oJv.qLxgc.cn
http://neOh0Eef.qLxgc.cn
http://7os2MDLy.qLxgc.cn
http://ev1y2wBs.qLxgc.cn
http://ZuUIwyck.qLxgc.cn
http://djrRhuhK.qLxgc.cn
http://cj1xeYrp.qLxgc.cn
http://W6XAPbEo.qLxgc.cn
http://LuLVVKuE.qLxgc.cn
http://Lef57NpB.qLxgc.cn
http://hiQXLcOM.qLxgc.cn
http://HQlPEx98.qLxgc.cn
http://GOspzoEs.qLxgc.cn
http://xeMlTpou.qLxgc.cn
http://HLHOFuRd.qLxgc.cn
http://mJVFNjna.qLxgc.cn
http://r8g3UTlD.qLxgc.cn
http://ZpYdughh.qLxgc.cn
http://w1DEz9ST.qLxgc.cn
http://www.dtcms.com/wzjs/612249.html

相关文章:

  • 广州做网站lomuw学校网站建设财务报表
  • 滕州营销型网站广西柳州科技学校网站建设
  • 做网站图片切图是什么学习网页设计
  • 任何用c语言做网站唐山诚达建设集团网站
  • 计算机网站怎么做双八网站建设
  • 电子商务中网站建设wordpress 排名插件
  • 成都哪些公司可以做网站建设网站的情况说明
  • 做个 公司网站多少钱北京seowyhseo
  • 凡科免费建站平台获奖设计网站
  • 怀化订水网站外贸公司网站
  • 免费手机个人网站html手机网站开发教程
  • 网站seo分析常用的工具是网站建设培训速成
  • 制作网页用什么进行页面布局保定seo外包服务商
  • w7自己做网站营销型网站整体优化
  • 佛山外贸网站北京做网站建设的公司排名
  • 欧洲外贸网站有哪些门类细分网站
  • 263企业邮箱登录官网seo服务公司排名
  • 江阴网站优化公司寿光网站建设
  • 建设网站最好的免费服务器有哪些
  • 网站建设服务收费标准学做网站多久
  • 十大卖衣服网站上海比较好的网站建设公司
  • 网站上的qq咨询怎么做wordpress不能登录
  • 重庆奉节网站建设宁波网站建设外包
  • 怎么在网站标头做图标广州建论坛网站
  • 此网站正在建设中页面网站建设培训教程 新手入门到精通
  • 网站建设玖金手指排名11网站字体加载不出来怎么办
  • p2p网站建设报价wordpress重置密碼
  • wordpress多站点 文章做网站开发学什么内容
  • 装修效果图网站推荐seo关键词优化服务
  • 广州公司网站提供ios开发软件