-
Book Overview & Buying
-
Table Of Contents
Learning Pentesting for Android Devices
By :
WebView is an Android view that is used in order to display web content in an application. It uses the WebKit rendering engine in order to display web pages and other content with the file:// and data:// protocols, which could be used to load files and data content from the filesystem. WebView is used in various Android applications as well, which display the web content in the application, such as applications offering signup and login, by framing their mobile website in the application's layout. We will be discussing more about WebKit and its rendering engine in the next chapter. For this chapter, we will only be concerned about those applications that use WebKit.
The use of WebView in an application is quite simple and straightforward. Let's say we would like our entire activity to be a WebView component, loading content from http://examplewebsite.com.
Here is the code sample to implement WebView in an Android application:
WebView...
Change the font size
Change margin width
Change background colour