WebView in Android
In this video we are going to see that what is WebView.
Till now we have use different kind of layouts like Linear, Relative, Fragments etc...
If we want to add browser functionality in the application we can use WebView. It can load HTML in our application easily. To create applications that access internet connections we use WebView.
Suppose if we want to perform Google search from our application, than we can simply do that by loading WebView,
In order to load a web URL into the WebView, you need to call a method loadUrl(String url) of the WebView class, specifying the required url.
Apart from just loading URL you can have more control over your WebView by using the methods defined in WebView class.
WebView also has different methods like, canGoBack() to specify the webView has a back history item, canGoForward() to clear the webView forward and backward history, destroy() to destroy the internal state of webView and etc...
Have a friend to whom you would want to share this course?