Post Reply

[Q] WebView - Set URL from settings tab?!

13th May 2014, 07:56 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Jan 2011
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:

Code:
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..

Code:
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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes