鸿蒙支持webrtc api嘛?
OS暂时不支持相关api,可以通过音频的系统接口来实现相关功能,关于音频的系统接口可以参考以下链接:https:docs.openharmony.cnpagesv3.2Betazhcnapplicationdevreferenceapisjsapisaudio.md
deveco studio里面可以实现3D场景的效果吗?
支持WebGL的能力。接口参考:https:gitee.comopenharmonydocsblobmasterzhcnapplicationdevreferenceapisjsapiswebgl.mdwebglhttps:gitee.comopenharmonydocsblobmasterzhcnapplicationdevreferenceapisjsapiswebgl2.md
安装apk之后,rawfile文件的的具体路径是什么?
rawfile文件的具体路径为:dataappel1bundlepubliccom.example.myapplicationzpentryresourcesrawfile,其中com.example.myapplicationzp是对应的bundleName名称,更换为您对应的bundleName名称即可。具体查询方法:首先可以在rawfile路径下随便创建一个文件,比如book.txt;然后在控制台中输入以下shell指令1.hdcstdshell2.findnamebook.txt
鸿蒙DevEco,程序重复打开问题有懂的吗?
需要先了解页面的生命周期,这样对以后发生的问题会有多帮助,因为页面的操作会被系统管控。如果点击home后,再进入app,可以在onStart里面初始化页面内容,除非页面被系统回收或是返回键主动销毁该页面,这种业务场景下的onStart方法只会被调用一次。https:developer.harmonyos.comcndocsdocumentationdocguidesabilitypagelifecycle0000000000029840
持久化数据PersistentStorage使用问题求助
1.PersistentStorage目前是不支持预览的;2.如果是使用standard模板创建的应用,是需要在OpenHarmony系统上安装运行的,目前devEco并没有OpenHarmony模拟器,所以无法安装的,只能使用真实设备。3.如果成功安装到开发板上,点击无法打开,建议先获取一下日志。
设置代理不跳转怎么回事?
ability是需要在config,json的abilities配置生命周期的,如果此方法还是无法调起ability,,请尝试CollectServiceAbility继承aceInternalAbility,请参考InternalAbility:https:developer.harmonyos.comcndocsdocumentationdocguidesuijsfacallpa0000001050435961
Iamge组件如何加载Graphic的资源图片?
“image加载graphic中的xml的图片资源”楼主说的是矢量图吧。目前我只知道一种办法:使用setBackground方法,代码如下,希望能帮到你。1、xml中,需要设置宽高具体的数值,否则不显示(部分代码)<Imageohos:id"$+id:image"ohos:height"50vp"ohos:width"50vp"ohos:backgroundelement"$graphic:ichome">2、ability中代码设置(部分代码)VectorElementvectorElementnewVectorElement(getContext(),ResourceTable.Graphicicperson);image.setBackground(vectorElement);
鸿蒙应用app开发,如何屏蔽调Home键和返回键?
参考下面代码,能部分实现你的需求,返回键可以实现屏蔽,home键还不行packagecom.huawei.keyeventdemo;importcom.huawei.keyeventdemo.slice.MainAbilitySlice;importohos.aafwk.ability.Ability;importohos.aafwk.content.Intent;importohos.multimodalinput.event.KeyEvent;publicclassMainAbilityextendsAbility{OverridepublicvoidonStart(Intentintent){super.onStart(intent);super.setMainRoute(MainAbilitySlice.class...
关于 onArrange中获取到的参数的问题
getHeight()方法要在onArrange()执行完成才能获取到,这时应该使用getMeauserHeight()获取高度;top与left是自定义的布局相对父布局而言的位置,父布局也用自定义CompenentContainer,重写onArrange摆放现在用的自定义CompenentContainer,再在自定义CompenentContaine的onArrange打印这个两个参数、系统的默认都是0。