Android 如何从foursquare的场馆列表中获取特定类型的场馆。

Android 如何从foursquare的场馆列表中获取特定类型的场馆。,android,foursquare,Android,Foursquare,通过使用这个代码,我得到了所有场馆的详细信息,这里我想要特定类型的场馆,比如说“酒店”,“餐厅”,如何在下面的代码中指定 DefaultHttpClient httpclient = new DefaultHttpClient(); final HttpParams httpParams = httpclient.getParams(); HttpConnectionParams.setConnectionTimeout(httpParams, 30000);

通过使用这个代码,我得到了所有场馆的详细信息,这里我想要特定类型的场馆,比如说“酒店”,“餐厅”,如何在下面的代码中指定

DefaultHttpClient httpclient = new DefaultHttpClient();
        final HttpParams httpParams = httpclient.getParams();
        HttpConnectionParams.setConnectionTimeout(httpParams, 30000);
        HttpConnectionParams.setSoTimeout(httpParams, 30000);
        HttpGet httppost = new HttpGet(
                "https://api.foursquare.com/v2/venues/search?intent=checkin&ll="
                + lat + "," + longi + "&client_id=" + client_id
                        + "&client_secret=" + client_secret + "&v="
                        + 20131008); //

尝试使用此修改的url来解决此问题。在url中,我们可以直接筛选场馆

try {
            httppost = new HttpGet(
                    "https://api.foursquare.com/v2/venues/search?intent=checkin&ll="
                    + lat + "," + longi + "&client_id=" + client_id
                            + "&client_secret=" + client_secret +"&query="+ URLEncoder.encode("Hotel|Bar|Club|Cafe|CoffeeShops", "utf-8")+ "&v="
                            + 20131008);
        } catch (UnsupportedEncodingException e1) {
            // TODO Auto-generated catch block
            e1.printStackTrace();
        } //

这不是一个完整的例子。我们在这里看到的只是如何创建URL。你想做什么?解析XML?Json的回应?