X-Git-Url: https://git.gumartinm.name/?a=blobdiff_plain;ds=sidebyside;f=source%2FJavaUpdateLocation.java;fp=source%2FJavaUpdateLocation.java;h=1624330019c21a253c366755b2324fa9caffa3bb;hb=ab1fb89b30889e5de74f16efa5593c9d1fcf6905;hp=0000000000000000000000000000000000000000;hpb=24e78686836e381b1773cab472cad56277ff0353;p=PFCLatex%2F.git diff --git a/source/JavaUpdateLocation.java b/source/JavaUpdateLocation.java new file mode 100644 index 0000000..1624330 --- /dev/null +++ b/source/JavaUpdateLocation.java @@ -0,0 +1,10 @@ +public void makeUseOfNewLocation(Location loc) { + + final String latitude = Double.toString(loc.getLatitude()); + final String longitude = Double.toString(loc.getLongitude()); + //RESTful WebService + final String URLAuth = urlServer + latitudeReplace + "/" + longitudeReplace + "/gpsads.json"; + URL url = new URL(URLAuth); + + this.exec.execute(new Batch(url)); +}