简体   繁体   English

WebView如何在移动设备中工作? (启动新的浏览器?)

[英]How does WebView work in a mobile device? (starts a new browser?)

I'm new to android. 我是android新手。 I have a question related to WebView. 我有一个与WebView有关的问题。 It's not clear to me how WebView works. 我不清楚WebView如何工作。

When we use a WebView, does the mobile start a new browser in order to load the URL (even if the url is online or locally stored on the mobile)? 当我们使用WebView时,移动设备是否会启动新的浏览器以加载URL(即使该URL是在线的还是本地存储在移动设备上)?

Cause, I would like to create a native android app (test.apk) with WebView and its's not clear to me if the app starts from the browser or from an inline View. 原因,我想使用WebView创建一个本地android应用(test.apk),但对于该应用是从浏览器还是从内联视图启动,我还是不清楚。

Any tutorial or example would be very helpful 任何教程或示例都将非常有帮助

Thanks 谢谢

A WebView is a view that displays web content right inside your app. WebView是在应用程序内部显示Web内容的视图。 It does not have fancy stuff like bookmarks or a history view, but you could build a full featured browser around a WebView . 它没有诸如书签或历史视图之类的奇特的东西,但是您可以围绕WebView构建功能齐全的浏览器。 Imagine a WebView as a view that displays a web page. WebView想象为显示网页的视图。

If you want to start an external web browser app, you can use an Intent to let the system find a suitable app to handle your url. 如果要启动外部Web浏览器应用程序,则可以使用Intent让系统找到合适的应用程序来处理您的URL。

Webview is : Webview是:

  • View that displays web pages. 显示网页的视图。
  • Provides no browser-like widgets, does not enable JavaScript 不提供类似浏览器的小部件,不启用JavaScript
  • Uses WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out. 使用WebKit渲染引擎显示网页,并包括在历史记录中前后导航,放大和缩小的方法。

Check Android Webview for detailed information. 检查Android Webview以获得详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WebView loadUrl(始终启动浏览器 - WebView loadUrl( always starts browser HttpUrlConnection在移动设备上不起作用,但在模拟器上起作用 - HttpUrlConnection does not work on mobile device but on emulator 当 WebView 开始加载新页面时如何获得通知? - How can get notified when a WebView starts loading a new page? Android的常规浏览器(或WebView)-为什么缓存不持久? 缓存如何工作? - Android's stock browser (or WebView) - why cache does not persist? How does the cache work? 如何在移动设备的Internet浏览器上显示另存为 - How to show save as on Internet browser of a mobile device pdf在Ionic应用程序中的浏览器中而不是在移动设备中读取工作 - pdf read work in browser but not in mobile device in Ionic app 在新浏览器中打开webview - Opening webview not in new browser 将“ Webview”嵌入到“ Chrome应用程序”然后“部署到移动设备”是否有效? - Does embedding a “Webview” into a “Chrome App” then “Deploy To Mobile” work? CORS + Android Webview,不适用于设备(​​但适用于模拟器) - CORS + Android Webview, doesn't work on device (but does on emulator) Webview不被视为移动浏览器 - Webview not being seen as a mobile browser
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM