Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URL url = new URL("https://www.android.com/");
- HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
- try {
- InputStream in = new BufferedInputStream(urlConnection.getInputStream());
- readStream(in);
- } finally {
- urlConnection.disconnect();
- }
Add Comment
Please, Sign In to add comment