Take the 2-minute tour ×

I am wanting to set the URL of a webview via some sort of settings menu. The purpose of this is to create a web front end to a piece of equipment and the equipment will have it's IP address set.

I want to be able to set this IP address as the URL of the app.

Any ideas?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

You can store that URL in a SharedPreferences object and consider using a PreferenceActivity screen for editing it.

share|improve this answer
add comment

WbView has loadUrl method, use it like this:

String webUrlStr = "http://www.url.com";
share|improve this answer
How can this be permanantly set but editable at any time? –  user1474819 Jul 9 '12 at 16:29
I don't understand your question. You can call loadUrl passing in a different String any time you want. it is not permanent. –  FoamyGuy Jul 9 '12 at 16:46
add comment

Your Answer


