Home
Sign Up
Sign In
V2EX
›
Android
[Android] 当从 App 中引用 WebView, 能从网页的链接再调回本 App 中的 NativeView 吗?
iugo
·
Apr 26, 2015
· 13108 views
This topic created in 4226 days ago, the information mentioned may be changed or developed.
WebView
nativeview
引用
3 replies
•
2015-04-30 10:17:07 +08:00
WildCat
Apr 26, 2015 via iPhone
1
1
http://stackoverflow.com/questions/16030737/android-calling-java-from-webview
请善用搜索
iugo
OP
Apr 26, 2015
2
@
WildCat
抱歉, 没有做过 Android 开发, 不知道怎样用语言描述.
iugo
OP
Apr 30, 2015
3
目前总结方法有二:
1. scheme, 自定义协议
例子: 淘宝, 通过 taobao://shop76543 访问某一家店铺.
2. html 页面解析
例子: 美团, 在活动页面中有
http://m.mt.com/shop76543.html
访问某一家店铺.
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
3475 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms ·
UTC 09:59
·
PVG 17:59
·
LAX 01:59
·
JFK 04:59
♥ Do have faith in what you're doing.
❯