Added a comment about Froyo's troubles.
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 18 Jul 2012 14:59:24 +0000 (14:59 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 18 Jul 2012 14:59:24 +0000 (14:59 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@900 180e2498-e6e9-4542-8430-84ac67f01cd8

android/src/net/sf/openrocket/android/thrustcurve/ThrustCurveAPI.java

index 0d1a3de42d423c0380fadd73acaa198247734905..6d7fe35098e80e7f72dfe48117d9f35a61ab99d3 100644 (file)
@@ -18,13 +18,13 @@ import net.sf.openrocket.motor.ThrustCurveMotorPlaceholder;
 \r
 public abstract class ThrustCurveAPI {\r
 \r
-       //private static String url_base = "http://www.thrustcurve.org/servlets/";\r
-       \r
        public static SearchResponse doSearch( SearchRequest request ) throws MalformedURLException, IOException {\r
                \r
                String requestString = request.toString();\r
                \r
                AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString);\r
+               // Froyo has troubles resolving URLS constructed with protocols.  Because of this\r
+               // we need to do it in parts.\r
                URL url = new URL("http", "www.thurustcurve.org", "servlets/search");\r
 \r
         OutputStream  stream;\r
@@ -58,6 +58,8 @@ public abstract class ThrustCurveAPI {
                String requestString = dr.toString();\r
 \r
                AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString);\r
+               // Froyo has troubles resolving URLS constructed with protocols.  Because of this\r
+               // we need to do it in parts.\r
                URL url = new URL("http", "www.thurustcurve.org", "servlets/download");\r
 \r
                OutputStream  stream;\r