Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
import java.net.*;
import java.io.*;
...
URL u = new URL("[URL unfurl="true"]http://bla.com/image/bla.jpg");[/URL]
HttpUrlConnection huc = (HttpUrlConnection)u.openConnection();
InputStream is = huc.getInputStream();
FileOutputStream fos = new FileOutputStream("afile.jpg");
// Then read the 'is' stream and write it out to the 'fos' stream ...