通过DataAbility给简易浏览器增加历史记录存储学习鸿蒙的点滴记录在Gitee上面:https:gitee.comjavaaierHarmonyOSNotes注:本次笔记及代码中使用了发发老师(钟洪发)视频的配套代码.侵删.添加数据库类Database(entities{WebViewHistory.class,WebViewFavorite.class},version1)publicabstractclassWebViewStoreextendsOrmDatabase{}1.2.3.添加历史记录类Entity(tableName"WebViewHistory",indices{Index(value{"historyId"},name"h...
2021-04-19 21:43:11 1.1w浏览 6点赞 4回复 4收藏
打开官网,找到WebView的文档(模拟器不支持)鸿蒙webview的开发指南(原始链接,方便大家识别并点击):https:developer.harmonyos.comcndocsdocumentationdocguidesuijavacomponentwebview00000010927151582.创建一个PageAbility,把基本布局弄好下面是代码<xmlversion"1.0"encoding"utf8"<DirectionalLayoutxmlns:ohos"http:schemas.huawei.comresohos"ohos:height"matchparent"ohos:width"matchparent"ohos:orientation"vertical"<D...
2021-04-17 09:22:39 1.9w浏览 4点赞 4回复 4收藏
首先将两台鸿蒙设备插入电脑的usb上查看两台鸿蒙设备的deviceidC:\Users\Administratoradbdevicesdaemonnotrunning;startingnowattcp:5037daemonstartedsuccessfullyListofdevicesattachedFRU6R2011500QWERunauthorizedMVT5T1970300ABCDunauthorized1.2.3.4.5.6.切换成wifi调试,将以下命令依次输入adbsMVT5T1970300ABCDtcpip55555restartinginTCPmodeport:55555adbsFRU6R2011500QWERtcpip55556restartinginTCPmodeport:555561.2...
2021-04-16 09:25:13 3.4w浏览 10点赞 10回复 3收藏
大家一起学鸿蒙OS(HarmonyOS)设备开发笔记byjavaaier资源软件名称地址1VirtualBox6.1.16140961Win.exehttps:www.virtualbox.orgwikiDownloads2ubuntu20.04.1desktopamd64.isohttp:releases.ubuntu.com20.043putty64bit0.74installer.msihttps:www.chiark.greenend.org.uksgtathamputty4VisualStudioCodeVSCodeUserSetupx641.52.1.execdn下载VSCode官网下载缓慢或下载失败的解决办法5node.jsnode.js官网6jdkjdk8官网7ch341ser串...
2021-02-01 10:37:05 1.6w浏览 7点赞 9回复 3收藏