Home
Sign Up
Sign In
V2EX
›
Android
hybrid app web 端如何应用 app 内置的静态文件
wobuhuicode
·
Oct 27, 2016
· 12700 views
This topic created in 3670 days ago, the information mentioned may be changed or developed.
如题: hybrid app web 端如何应用 app 内置的静态文件
目前打算做一个内嵌的 APP 内部的页面
打算把静态文件也放在 app 里面。
还要求能跟随版本更新~
求大神指导
App
静态
hybrid
Web
1 replies
•
2016-10-27 11:40:42 +08:00
shlabc
Oct 27, 2016
1
直接访问 asset 目录,简单代码如下,很多细节控制自己找一下吧
WebView view = new WebView(context);
view.loadUrl("file:///android_asset/index.html");
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1930 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms ·
UTC 12:02
·
PVG 20:02
·
LAX 04:02
·
JFK 07:02
♥ Do have faith in what you're doing.
❯