From: kruland2607 Date: Wed, 18 Jul 2012 14:59:24 +0000 (+0000) Subject: Added a comment about Froyo's troubles. X-Git-Tag: upstream/12.09^2~101 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=2d4c3004db7a0d6c479d54f93905227c55ca8d0a;p=debian%2Fopenrocket Added a comment about Froyo's troubles. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@900 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java b/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java index 0d1a3de4..6d7fe350 100644 --- a/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java +++ b/android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java @@ -18,13 +18,13 @@ import net.sf.openrocket.motor.ThrustCurveMotorPlaceholder; public abstract class ThrustCurveAPI { - //private static String url_base = "http://www.thrustcurve.org/servlets/"; - public static SearchResponse doSearch( SearchRequest request ) throws MalformedURLException, IOException { String requestString = request.toString(); AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString); + // Froyo has troubles resolving URLS constructed with protocols. Because of this + // we need to do it in parts. URL url = new URL("http", "www.thurustcurve.org", "servlets/search"); OutputStream stream; @@ -58,6 +58,8 @@ public abstract class ThrustCurveAPI { String requestString = dr.toString(); AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString); + // Froyo has troubles resolving URLS constructed with protocols. Because of this + // we need to do it in parts. URL url = new URL("http", "www.thurustcurve.org", "servlets/download"); OutputStream stream;