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.
- Open Eclipse with the Android packages installed
- Click "File"
- Click "Import..."
- Follow the instructions in the dialog to import the project
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.
Eclipse IDE: http://www.eclipse.org
Android Developer Portal: https://developer.android.com