Hi Shai, after watching these videos (http://www.codenameone.com/blog/propertycross-demo.html). I'm trying to do the same but i'm finding it very difficult as i'm using the old GUI Builder. I created a form called Form A. I want those results from the web service to display on the form A and be able to navigate upon clicking any of those images just like what you did in the video. I'm using the following methods: private Map response; @Override protected void beforeFormA(Form f) { getattractive(); ArrayList arr = (ArrayList) response.get("results"); for (Object m:arr){ Map ma = (Map)m; address =(String) ma.get("formatted_address"); findContainer(f).addComponent(new Label(""+ address )); } } *Connection Request:* private void getattractive(){ ConnectionRequest r= new ConnectionRequest(){ @Override protected void readResponse(InputStream input) throws IOException { JSONParser parse= new JSONParser(); response= parse.parseJSON(new InputStreamReader(input)); } }; String doc="Johor"; r.setUrl("https://maps.googleapis.com/maps/api/place/textsearch/json?query="+doc+"+city+point+of+interest&language=en&key=api_key"); r.setPost(false); r.setHttpMethod("GET"); InfiniteProgress prog=new InfiniteProgress(); Dialog dlg=prog.showInifiniteBlocking(); r.setDisposeOnCompletion(dlg); NetworkManager.getInstance(). addToQueueAndWait(r); } *First record from the webservice:* { "html_attributions" : [ "Listings by \u003ca href=\"http://www.openrice.com/\"\u003eOpenRice\u003c/a\u003e" ], "results" : [ { "formatted_address" : "Jalan Gertak Merah, 80000 Johor Bahru, Johor, Malaysia", "geometry" : { "location" : { "lat" : 1.4575491, "lng" : 103.7523184 }, "viewport" : { "northeast" : { "lat" : 1.458888830291502, "lng" : 103.7536227802915 }, "southwest" : { "lat" : 1.456190869708498, "lng" : 103.7509248197085 } } }, "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png", "id" : "7c6808053578e235889ea4fb585d43f1fdb25683", "name" : "Zoo Johor", "opening_hours" : { "open_now" : true, "weekday_text" : [] }, "photos" : [ { "height" : 2592, "html_attributions" : [ "\u003ca href=\"https://maps.google.com/maps/contrib/105088801807714473130/photos\"\u003e中島將貴\u003c/a\u003e" ], "photo_reference" : "CmRaAAAAAMaIKm8L8gVpId5ycP6xJSZgz_rQfQowXLo9xcBbjh310zCwISl4ZyX4djRDSra47BiqFhS-35BG8_v-VC3VK0axftevzVRiKSS3MFmrXATwpeGHRe1JroI0vckE8BYXEhB_SenVoqIYPDbu89ebPrXAGhQBZEij_vsj3pAwcj5mYjAkw1sPcQ", "width" : 3872 } ], "place_id" : "ChIJpTA-wsAS2jERtAhAlaGjg6g", "rating" : 3.7, "reference" : "CmRSAAAAAsAK89IFfD85of_OzBiU0JRBp-MeVHZKrbZv8xk-VMhDtDGF-1T0fzpAweqy4NCAjCmYCHSHnT7y4hB2zcAhfKmtB456EtgKt2EPF2QgagFa_-jNZaykEtEpp21-RXYgEhBLUEYJiUVsN8h_P7ltXzSPGhTEwnIwCBsBk6VyIL6PXu8qZ1IkMg", "types" : [ "zoo", "point_of_interest", "establishment" ] } Please kindly help. Regards,
IDE: NetBeans Desktop OS: Windows 7 Simulator -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b973c3e4-a969-4e21-8905-c6e9001fd69f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
