Added a comment about Froyo's troubles.

This commit is contained in:
Kevin Ruland 2012-07-18 14:59:24 +00:00
parent c6a9f17179
commit 19b33d1583

View File

@ -18,13 +18,13 @@ import net.sf.openrocket.motor.ThrustCurveMotorPlaceholder;
public abstract class ThrustCurveAPI { public abstract class ThrustCurveAPI {
//private static String url_base = "http://www.thrustcurve.org/servlets/";
public static SearchResponse doSearch( SearchRequest request ) throws MalformedURLException, IOException { public static SearchResponse doSearch( SearchRequest request ) throws MalformedURLException, IOException {
String requestString = request.toString(); String requestString = request.toString();
AndroidLogWrapper.d(ThrustCurveAPI.class, "doSearch: " + requestString); 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"); URL url = new URL("http", "www.thurustcurve.org", "servlets/search");
OutputStream stream; OutputStream stream;
@ -58,6 +58,8 @@ public abstract class ThrustCurveAPI {
String requestString = dr.toString(); String requestString = dr.toString();
AndroidLogWrapper.d(ThrustCurveAPI.class, "downloadData: " + requestString); 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"); URL url = new URL("http", "www.thurustcurve.org", "servlets/download");
OutputStream stream; OutputStream stream;