从原生 Android 代码访问 html5 存储
我已经在android中开发了phonegap应用程序,现在需要从应用程序中的本机代码/android服务更新和访问本地存储数据。有办法这样做吗?
I have developed phonegap application in android, now there is a requirement to update and access localstorage data from native code/android service in application. Is there a way to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,您可以从本机代码(通过 webview 对象)触发 javascript 函数,然后访问本地存储。
希望这有帮助!如果您需要更具体的内容,请拍摄!
In general, you can trigger a javascript function from your native code (via the webview object) and then access the localstorage.
Hope this helps! If you need something more specific, please shoot it!