Showing posts with label webview. Show all posts
Showing posts with label webview. Show all posts

Wednesday, June 8, 2011

Adding Local Images to An Android Webview

This tutorial demonstrates how to download a web page from the internet, and then modify that web page to use local graphics resources before displaying to the user.

Why Use Local Images?

Perhaps you want your app to dynamically load data from the internet, but you frequently want to display the same images. Using local images can be a good way to cut down on the amount of bandwidth needed for an application and could improve performance.

Before We Start

If you haven't all ready, please take a look at the previous tutorial, displaying a static web page in android.This tutorial will be building off of that.

Sunday, March 27, 2011

Displaying a Static Web Page Inside of an Android Activity

In this tutorial, learn how to use the Android WebView to display a web page that is embedded into your app, without connecting to the internet. Learn how to properly include graphics as well.

Displaying a Static Web Page Inside of an Android Activity

Why Display Static Pages?

In a previous tutorial, we showed you how to display a web page from within an Android Activity.

This is very useful, but there may be some cases in which you want to take advantage of the html rendering capabilities without having to download a file from the internet.

Why would you want to do this?
  1. Your application won't have to require an internet permission
  2. Your requested web page will load faster
  3. You can use it to display important content (instructions, help files, high scores...) without relying upon an internet connection that could be spotty or non-existent

Sunday, March 13, 2011

Displaying a Web Page from Within an Android Activity

Android WebViews let you display fully formatted HTML inside of an Android Activity.This tutorial will walk you through adding and using a webview.

Android WebViews

If you have followed through a couple of the tutorials already, or have already made a couple of applications on your own, then you have no doubt used several of the built in View types available from Android. One view you may not have known about is the Android WebView.

AndroidDom loaded in a webview