Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.
/ AndroidWebViewDemo Public archive

A demo showing use of the WebView control on Android. It loads both a website in the WebView, launches other pages to the browsers, and loads a local web application.

Notifications You must be signed in to change notification settings

jbutz/AndroidWebViewDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Android WebView Demo

This is a demo eclipse project showing using of the Android WebView control. It can be used to run a web application from the internet or from local files. Import this project into eclipse to be able to give it a try, and look at the code.

"Install" the Demo

  1. Open Eclipse with the Android packages installed
  2. Click "File"
  3. Click "Import..."
  4. Follow the instructions in the dialog to import the project

Customize

You can customize the demo in two ways. Firstly in WebAppDemo/res/values/strings.xml you can control the default URL and the hosts that can be opened in the app. The app is resticted to only opening 1 host as I have it set up. The default is jasonbutz.info. I have the app set up to load the index file from the WebAppDemo/assets/ folder when it loads. This will show you navigation inside the WebView and allow you to open Google, which loads with default browsers, or jasonbutz.info, which loads with the app.

Resources

Eclipse IDE: http://www.eclipse.org

Android Developer Portal: https://developer.android.com

About

A demo showing use of the WebView control on Android. It loads both a website in the WebView, launches other pages to the browsers, and loads a local web application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages