• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Webview help please

jaylam

Lurker
Hi,

Im trying to create my first Android app, I am very new to Android so please bare with me.

Basically I have created a webview which loads a webpage when the app starts and there is a button under it which when clicked I want it to load a different url in the webview.

I cannot figure out how to get the button to do this.

Can anyone help a newbie?

Many thanks in advance.

Jay
 
Welcome to AF :)

1) Be sure you have the INTERNET permission in your manifest

2) to load a URL you just call:

Code:
myWebView.loadUrl ( "http://phandroid.com/");



If you need help getting the button to work and getting references, let us know :)
 
Back
Top Bottom