Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
b) Mach auch in saveUrl ein catch zum try, mit Ausgab der Exception
c) Ich werde gleich die Seite auf Useragentzeug untersuchen...
das passt ziemlich gut zu der exception, aber wie könnte ich das denn beheben?hier steht auch was zu: http://stackoverflow.com/a/2965406/603003
public static void saveUrl(String filename, String urlString)
throws MalformedURLException, IOException
{
InputStream in = null; ////
FileOutputStream fout = null;
try
{
in = new URL(urlString).openStream(); ////
fout = new FileOutputStream(filename);
byte data[] = new byte[1024];
int count;
while ((count = in.read(data, 0, 1024)) != -1)
{
fout.write(data, 0, count);
}
}
finally
{
if (in != null)
in.close();
if (fout != null)
fout.close();
}
}
}