- Forum posts: 1
May 12, 2014, 10:15:46 PM via Website
May 12, 2014 10:15:46 PM via Website
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..
IP:
Port:
So it'll look something like:
IP Address:
[ INPUT BOX HERE FOR IP ADDRESS (*@IP_ID*) ]
Port Number:
[ 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..
startWebView("**@IP_ID** : **@Port_ID**"
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
HELP?!