I'm trying to run a URL command that suppose to call from my software to a phone, and it's working is just that I want it without the browser OR with it and close it after like 3-5 seconds it's also fine by me. So basically there is String contains: URL + phone number now I tried a lot of options like:
HttpURLConnection httpConn = null;
URL url = new URL(url_open);
httpConn = (HttpURLConnection) url.openConnection();
httpConn.setRequestMethod("GET");
// Time out after a 5 seconds
httpConn.setConnectTimeout(5000);
httpConn.connect();
httpConn.disconnect();
And I tried:
Process p = Runtime.getRuntime().exec("C:\\Program Files\\Internet
Explorer\\iexplore.exe" +" " + url_open);
Thread.sleep(5000);
System.out.println("The address" + " " + url_open);
p.destroy();
Without success.