热门问题
待回答
最新问题
热门回答
  • 1

    回答

    959

    浏览
    HarmonyOS 怎么实现特定的MD5加密方式

    当前app中用接口安全校验用了md5加密方式,但是加密结果和直接调用cryptojs中MD5的加密结果不一致,不知道当前app中MD5的加密效果用在HarmonyOS中怎么实现,现在附上其他系统版本MD5方法实现,帮忙提供下在HarmonyOS中应该如何实现相同的加密效果,当前HarmonyOSMd5的加密方法也提供在图片中,比如对字符串“299ca90913f94fa598782952db14796820240719151721375617791937300crm.BITautoCOM”的加密结果,当前其他系统中得到的加密结果是“10cdd15d6255ae1b2e5362e148ba194c”

    HarmonyOS
      FengTianYa 进行了回答 • 2024-12-23 20:49:06
  • 1

    回答

    1092

    浏览
    HarmonyOS 条形码生成示例

    因业务需求需显示条形码(一维码)BarCode128,请问有推荐可用的库么?需兼容API12的sdk

    HarmonyOS
      aquaa 进行了回答 • 2024-12-23 20:49:03
  • 1

    回答

    1165

    浏览
    HarmonyOS 无法接收推送数据

    按照链接配置推送接收的Ability,接收不到推送,https:developer.huawei.comconsumercndocharmonyosguidesV5pushsendextendnotiV5需求是推送中会添加uri信息,客户端点击推送时,解析对应的uri信息做相应处理,怎么接收到uri?或者额外参数怎么传怎么接收?

    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-23 20:48:33
  • 1

    回答

    958

    浏览
    HarmonyOS ohos.userIAM.userAuth (用户认证) 怎么确认认证结果是否变化

    使用userAuth时1、userAuthRest中token的作用是用在哪方面,测试发现每次认证后token都是变化的2、在一些场景中要确认用户识别是没改变的,目前是使用userAuthRest中enrolledState.credentialDigest来识别用户的认证信息没有改变根据用户识别认证结果确认是安全的操作,做对应的业务处理

    HarmonyOS
      zxjiu 进行了回答 • 2024-12-23 20:48:03
  • 1

    回答

    884

    浏览
  • 1

    回答

    1036

    浏览
    HarmonyOS 有没有外部的SmartPerf网站
    HarmonyOS
      aquaa 进行了回答 • 2024-12-23 20:45:25
  • 1

    回答

    1409

    浏览
    HarmonyOS 如何获取手机的唯一 ID?
    HarmonyOS
      superinsect 进行了回答 • 2024-12-23 20:44:56
  • 1

    回答

    1581

    浏览
    HarmonyOS 实况窗报错

    实况窗有个报错:StartLiveViewfailed,msgParametererror.ThetypeoflayoutData.titletitlebestring[ortheparameterismandatory].

    HarmonyOS
      Excelsior_abit 进行了回答 • 2024-12-23 20:44:35
  • 1

    回答

    1050

    浏览
    HarmonyOS emitter的性能问题

    例如存在很多类似定时刷新界面的监听群发,使用emitter对性能是否有影响,对内存消耗怎么样。

    HarmonyOS
      shlp 进行了回答 • 2024-12-23 20:44:24
  • 1

    回答

    992

    浏览
    HarmonyOS Scan Kit 自定义扫码返回1000500001

    import{hilog}from'kit.PerformanceAnalysisKit';import{BusinessError}from'kit.BasicServicesKit';import{scanBarcode,scanCore,customScan}from'kit.ScanKit';letoptions:scanBarcode.ScanOptions{scanTypes:[scanCore.ScanType.ALL],enableMultiMode:true,enableAlbum:true};EntryComponentstructcustomScanPage{设置预览流高度,默认单位:vpStatecameraHeight:number640设置预览流宽度,默认单位:vpStatecameraWidth:num...

    HarmonyOS
      zxjiu 进行了回答 • 2024-12-23 20:44:15
  • 1

    回答

    898

    浏览
    HarmonyOS 系统地图白屏

    目前使用系统地图,传入经纬度后,页面白屏,请帮忙看一下是什么问题,个别机型不展示

    HarmonyOS
      shlp 进行了回答 • 2024-12-23 20:44:08
  • 1

    回答

    1249

    浏览
    HarmonyOS 平板设备使用震动马达

    以下代码在手机上正常,在需要的场景可以触发震动马达,但是在平板上不生效。经测试,平版是带震动马达的,比如进入任务管理器(底部上滑停留)时有震动反馈。示例代码:ZZ.etsimport{BusinessError}from'kit.BasicServicesKit';import{vibrator}from'kit.SensorServiceKit';classZZ{zz(duration:number){try{触发马达振动vibrator.startVibration({type:'time',duration:duration,},{id:0,usage:'touch'},(error:BusinessError...

    HarmonyOS
      zbw_apple 进行了回答 • 2024-12-23 20:44:07
  • 1

    回答

    733

    浏览
    HarmonyOS 如何在post请求头添加自定义cookie
    HarmonyOS
      shlp 进行了回答 • 2024-12-23 20:43:58
  • 1

    回答

    1228

    浏览
    HarmonyOS APP性能监控

    HarmonyOS系统,APP上线后如何监控其性能、Crash、卡顿等。

    HarmonyOS
      superinsect 进行了回答 • 2024-12-23 20:43:29
  • 1

    回答

    1242

    浏览
    HarmonyOS push离线消息每天是否有次数限制

    APP请求华为这边成功,但是手机通知栏没显示通知

    HarmonyOS
      zbw_apple 进行了回答 • 2024-12-23 20:43:13
  • 1

    回答

    1227

    浏览
    HarmonyOS 应用遇到卡顿问题是否有日志可以排查
    HarmonyOS
      fox280 进行了回答 • 2024-12-23 20:42:46
  • 1

    回答

    1193

    浏览
  • 1

    回答

    986

    浏览
    HarmonyOS 怎么发送文件类型的请求:multipart/form-data
    HarmonyOS
      fox280 进行了回答 • 2024-12-23 20:41:52
  • 1

    回答

    1287

    浏览
    HarmonyOS 请求头设置cookie

    HttpRequestOptions中的header是一个Object类型,可以直接在header里设置cookie么。目前设置如下:letoptions:http.HttpRequestOptions{开发者根据自身业务需要添加header字段header:{'cookies':YTUtil.requestCookie}};http.createHttp().request(url,options,(error,data){})

    HarmonyOS
      FengTianYa 进行了回答 • 2024-12-23 20:41:49
  • 1

    回答

    722

    浏览
    HarmonyOS emitterdata丢失问题
    HarmonyOS
      Heiang 进行了回答 • 2024-12-23 20:41:27
  • 1

    回答

    813

    浏览
    HarmonyOS 有没有实现今日步数统计的demo
    HarmonyOS
      shlp 进行了回答 • 2024-12-23 20:41:23
  • 1

    回答

    776

    浏览
    HarmonyOS 如何获取当前方法的调用栈
    HarmonyOS
      FengTianYa 进行了回答 • 2024-12-23 20:41:08
  • 1

    回答

    987

    浏览
    HarmonyOS push 服务端报错 "msg": "All the tokens are invalid"

    调用push接口推送报错,麻烦定位接口地址:https:pushapi.cloud.huawei.comv1110475917messages:send请求报文:{"validateonly":false,"message":{"android":{"bitag":"{\"channelId\":319,\"pushType\":1,\"taskId\":24886283}","collapsekey":1,"notification":{"autocancel":true,"autoclear":36000000,"clickaction":{"intent":"fnfresh:shoppingcartrefcrm19070901&phoneType1&taskId24886283","type":1},"defaultsound":f...

    HarmonyOS
      Heiang 进行了回答 • 2024-12-23 20:40:39
  • 1

    回答

    1176

    浏览
    HarmonyOS 人脸检测矩形框left top与实际不对

    从双路预览的获取的buffer创建pixelMap调用faceDetector.detect,返回的矩形框坐标不准,脸是贴着屏幕左边的,但是left是190多,facepoint各个点的x是900多,这个换算规则是怎样的?将buffer转为PixelMapletsourceOptions:image.SourceOptions{sourceDensity:120,sourcePixelFormat:8,sourceSize:{height:1080,width:1920}}letimageSourceimage.createImageSource(buffer,sourceOptions);constdecodingOptions:image.DecodingOp...

    HarmonyOS
      superinsect 进行了回答 • 2024-12-23 20:39:48
  • 1

    回答

    1050

    浏览
    HarmonyOS 获取push token error code 1000900010

    获取pushtokenerrorcode1000900010,对着排查文档都设置过了,还是出错,不知道错误在哪里?

    HarmonyOS
      fox280 进行了回答 • 2024-12-23 20:39:33
  • 1

    回答

    979

    浏览
    HarmonyOS hilog本地如何打开查看
    HarmonyOS
      zxjiu 进行了回答 • 2024-12-23 20:39:24
  • 1

    回答

    892

    浏览
    HarmonyOS 短链接能否自动关闭

    在进行TCP短链接时,每次传输结束后都要进行关闭操作,有没有更好的解决方法?

    HarmonyOS
      put_get 进行了回答 • 2024-12-23 20:39:23
  • 1

    回答

    1113

    浏览
    HarmonyOS Share Kit的使用

    想通过shanrekit分享一张图片,图片来源于网络,通过image()组件或ImageKnife(三方库)加载到ui界面上,有什么办法分享?看官方文档是调用的uri,上述三种(网络、image、ImageKnife)情况如何拿到图片uri

    HarmonyOS
      zxjiu 进行了回答 • 2024-12-23 20:39:18
  • 1

    回答

    815

    浏览
    HarmonyOS 系统库中含有std::exception类型信息导致catch异常

    1、在DevEcoStudio中新建一个NativeC++项目。2、在生成的CMakeLists.txt的targetlinklibraries中添加libbundlendk.z.so。3、在生成的napiinit.cpp的Add代码块中加入如下代码:try{throwstd::invalidargument("testexception");}catch(std::exception&){}4、运行entry,点击中心的HelloWorld就会崩溃。预期的效果是,因为std::invalidargument是std::exception的派生类应当能被捕获,这里查了一下发现是libbundlendk.z.so中也有std::exception的typeinfo导致的(见下图),把libbundlendk.z.so从链接库中去掉即可正常运行。

    HarmonyOS
      Heiang 进行了回答 • 2024-12-23 20:39:07
  • 1

    回答

    1073

    浏览
    HarmonyOS P2P链接获取群组IP

    1、指定地址链接P2P,链接后有时会返回有p2pConnectionChange回掉,但返回的groupOwnerAddr无法ping通。2、指定地址链接P2P,链接后无反馈。控制台信息如下:

    HarmonyOS
      shlp 进行了回答 • 2024-12-23 20:39:04
3.8w问题, 4.1w人参与
94%的提问收到了回答

优秀答主

  • 回答了3个问题,0个赞同
  • 回答了3个问题,1个赞同
  • 回答了3个问题,0个赞同
  • 回答了2个问题,1个赞同
  • 回答了2个问题,0个赞同
  • 写回答 帮助更多的人