logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Harmony 鸿蒙net::ERR_CLEARTEXT_NOT_PERMITTED

Harmony 鸿蒙默认不使用明文网络流量http需要做如下配置config.json中"deviceConfig": {"default": {"network": {"cleartextTraffic": true,}}}

Harmony鸿蒙实现隐私政策自定义弹窗

Harmony鸿蒙实现隐私政策自定义弹窗这个跟之前的,类AlertDialog的CommonDialog是一样的,不过这个是可以自定义布局的效果如下:一、新建一个PrivacyDialogpublic class PrivacyDialog extends CommonDialog {private static final HiLogLabel LABEL = new HiLogLabel(Hi

Harmony鸿蒙Webview定位的问题

使用webview打开网页,遇到需要定位时,可以这样设置前提是需要先获取到定位权限webView.setBrowserAgent(new locationRec(this));private class locationRec extends ohos.agp.components.webengine.BrowserAgent{public locationRec(Context context)

华为鸿蒙Harmony使用WIFI/IP连接调试

华为鸿蒙Harmony使用WIFI/IP连接调试1、先打开SDK所在目录,例如:D:\HarmonyOS\Sdk\toolchains,然后打开powershell,如下图2、输入一下命令:.\hdc tmode port 5555,开启端口3、在DEV中得Tool-IP Conect 中输入你手机的IP地址,即可4、这样,以后就只需输入IP地址连接上就可以不用数据线调试了...

#华为#linux
Harmony鸿蒙Webview定位的问题

使用webview打开网页,遇到需要定位时,可以这样设置前提是需要先获取到定位权限webView.setBrowserAgent(new locationRec(this));private class locationRec extends ohos.agp.components.webengine.BrowserAgent{public locationRec(Context context)

Harmony 鸿蒙net::ERR_CLEARTEXT_NOT_PERMITTED

Harmony 鸿蒙默认不使用明文网络流量http需要做如下配置config.json中"deviceConfig": {"default": {"network": {"cleartextTraffic": true,}}}

华为鸿蒙Harmony使用WIFI/IP连接调试

华为鸿蒙Harmony使用WIFI/IP连接调试1、先打开SDK所在目录,例如:D:\HarmonyOS\Sdk\toolchains,然后打开powershell,如下图2、输入一下命令:.\hdc tmode port 5555,开启端口3、在DEV中得Tool-IP Conect 中输入你手机的IP地址,即可4、这样,以后就只需输入IP地址连接上就可以不用数据线调试了...

#华为#linux
Harmony鸿蒙实现隐私政策自定义弹窗

Harmony鸿蒙实现隐私政策自定义弹窗这个跟之前的,类AlertDialog的CommonDialog是一样的,不过这个是可以自定义布局的效果如下:一、新建一个PrivacyDialogpublic class PrivacyDialog extends CommonDialog {private static final HiLogLabel LABEL = new HiLogLabel(Hi

Harmony 鸿蒙Preferences的使用,类Android安卓SharedPreferences

Harmony 鸿蒙 类Android安卓SharedPreferences的使用,Preferencespublic class SpUtils {public static void put(Context context,boolean ischeck){DatabaseHelper databaseHelper = new DatabaseHelper(context);String fi

到底了