當我提供下面給出的網址,我得到正確的rsults但谷歌的地方API不支持多種類型的
String baseUrl = "https://maps.googleapis.com/maps/api/place/search/xml?location=";
String last="&radius=20000&types=school&sensor=false&key=";
URL = baseUrl + latitude + "," + longitude + last + API_KEY ;
當我嘗試使用多種類型,如:
學校|大學
它顯示被迫關閉.... EX
String baseUrl = "https://maps.googleapis.com/maps/api/place/search/xml?location=";
String last="&radius=20000&types=school|university&sensor=false&key=";
URL = baseUrl + latitude + "," + longitude + last + API_KEY ;
我在做什麼錯誤...
請發佈日誌,以便我們可以看到您收到的異常一個堆棧跟蹤。 – 2012-04-20 19:09:25
無法啓動活動ComponentInfo {com.run.trial/com.run.trial.RuntrialActivity}:java.lang.NullPointerException – santosh407 2012-04-22 17:01:01
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1768) – santosh407 2012-04-22 17:01:32