diff options
-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; |