Loading Url Without Webview
How can I load a URL without using WebView because my class has not a visual display it's just .java file and dont have .xml file in res/layout folder I just want to load URL, not
Solution 1:
You can use HttpURLConnection
URL url = new URL("http://example.com");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
Post a Comment for "Loading Url Without Webview"