diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-26 21:44:43 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-26 21:44:43 +0000 |
commit | d8688ef4eb4ef025403952e37194c896a3337aab (patch) | |
tree | 5f6acf97cd7157429fe8a230c261f174f309f8f6 | |
parent | 186bc100ecc1d5d78974f7f1784ca6c0a4c2fa80 (diff) |
Properly setting the localhost alias that points to the loopback address from the host machine that is running the android emulator
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778897 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/samples/store-android/src/services/CatalogProxy.java | 3 | ||||
-rw-r--r-- | branches/sca-java-1.x/samples/store-android/src/services/ShoppingCartProxy.java | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/branches/sca-java-1.x/samples/store-android/src/services/CatalogProxy.java b/branches/sca-java-1.x/samples/store-android/src/services/CatalogProxy.java index 40aeb6f0ae..7851ac6713 100644 --- a/branches/sca-java-1.x/samples/store-android/src/services/CatalogProxy.java +++ b/branches/sca-java-1.x/samples/store-android/src/services/CatalogProxy.java @@ -29,7 +29,8 @@ import org.json.JSONObject; import services.json.rpc.JSONRpc; public class CatalogProxy implements Catalog { - private static final String jsonRPCServiceURI = "http://192.168.1.102:8080/Catalog"; + // see http://developer.android.com/guide/developing/tools/emulator.html + private static final String jsonRPCServiceURI = "http://10.0.2.2:8080/Catalog"; private static final String jsonRPCRequest = "{\"id\": 3, \"method\": \"Service.get\", \"params\": []}"; private List<Item> catalog = new ArrayList<Item>(); diff --git a/branches/sca-java-1.x/samples/store-android/src/services/ShoppingCartProxy.java b/branches/sca-java-1.x/samples/store-android/src/services/ShoppingCartProxy.java index 1ec10f46c0..7e36c19c80 100644 --- a/branches/sca-java-1.x/samples/store-android/src/services/ShoppingCartProxy.java +++ b/branches/sca-java-1.x/samples/store-android/src/services/ShoppingCartProxy.java @@ -28,9 +28,10 @@ import services.atom.xml.AtomXML; import services.json.rpc.JSONRpc; public class ShoppingCartProxy { - private static final String jsonRPCTotalServiceURI = "http://192.168.1.102:8080/ShoppingCart/Total"; + // see http://developer.android.com/guide/developing/tools/emulator.html + private static final String jsonRPCTotalServiceURI = "http://10.0.2.2:8080/ShoppingCart/Total"; private static final String jsonRPCTotalRequest = "{\"id\": 4, \"method\": \"Service.getTotal\", \"params\": []}"; - private static final String atomXMLCartServiceURI="http://192.168.1.102:8080/ShoppingCart/Cart"; + private static final String atomXMLCartServiceURI="http://10.0.2.2:8080/ShoppingCart/Cart"; public Item[] getItems() { return null; |