Today we worked with Fragments and different kinds of views, also how we can create an application for a website, using web view.A common scenario in which using webview is helpful is when you want to provide information in your app that you might need to update, such as an end-user agreement or a user guide. Within your Android app, you can create an activity that contains a webview, then use that to display your document that's hosted online.
Another scenario in which webview can help is if your app provides data to the user that always requires an Internet connection to retrieve data, such as email. In this case, you might find that it's easier to build a webview in your Android app that shows a web page with all the user data, rather than performing a network request, then parsing the data and rendering it in an Android layout. Instead, you can design a web page that's tailored for Android devices and then implement a webview in your Android app that loads the web page.
Comments
Post a Comment