froyo has problems parsing real urls. We trick it by using the three argument URL...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 9 May 2012 02:37:05 +0000 (02:37 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 9 May 2012 02:37:05 +0000 (02:37 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/branches/froyo_12.03@658 180e2498-e6e9-4542-8430-84ac67f01cd8

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

index 6b74c2856221cd5526d9e943f06cde5e7db784fc..0d1a3de42d423c0380fadd73acaa198247734905 100644 (file)
@@ -18,14 +18,14 @@ import net.sf.openrocket.motor.ThrustCurveMotorPlaceholder;
 \r
 public abstract class ThrustCurveAPI {\r
 \r
-       private static String url_base = "http://www.thrustcurve.org/servlets/";\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
-               URL url = new URL(url_base + "search");\r
+               URL url = new URL("http", "www.thurustcurve.org", "servlets/search");\r
 \r
         OutputStream  stream;\r
 \r
@@ -58,7 +58,7 @@ public abstract class ThrustCurveAPI {
                String requestString = dr.toString();\r
 \r
                AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString);\r
-               URL url = new URL(url_base + "download");\r
+               URL url = new URL("http", "www.thurustcurve.org", "servlets/download");\r
 \r
                OutputStream  stream;\r
 \r