力的WebView打开里面的应用程序的URL - Android应用程序 [英] Force webview to open urls inside application - android app
本文介绍了力的WebView打开里面的应用程序的URL - Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何强制的WebView
来打开应用程序内的所有网址吗?
How to force WebView
to open all the urls inside the application?
推荐答案
您需要重写你的WebView的WebViewClient,看到这里的细节:这是pretty直截了当:<一href=\"http://developer.android.com/resources/tutorials/views/hello-webview.html\">http://developer.android.com/resources/tutorials/views/hello-webview.html
You need to override the WebViewClient for your WebView, see here for the details: it's pretty straight forward: http://developer.android.com/resources/tutorials/views/hello-webview.html
通知第6步尤其如此。
这篇关于力的WebView打开里面的应用程序的URL - Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文