[Q] WebView - Set URL from settings tab?!
I'm currently (trying) to make a app that simply displays a webpage.. However, I want to be able in the settings for the user to select the URL & port.. But finding it hard to do!
Basically, If the user presses the options button all I need is a box with two options..
So it'll look something like:
[ INPUT BOX HERE FOR IP ADDRESS (@IP_ID)
[ INPUT BOX HERE FOR Port ID (@Port_ID
Then within the code for the webview..
The code is:
webView = (WebView) findViewById(R.id.webView1);
startWebView(MY DEFAULT URL);
All I basically need to do is change the IP & Port to what the user puts into the settings.. So..
I'm pretty new to making app's but have previously done PHP, C++ & MySQL ect.. But this has just thrown me off a little..
I've asked a couple of other places but they just direct my to the android dev page which throws me off even more