0

我想使用 KSOAP2 解析 Google Places API。是否可以在Google API即 Google Places API中使用KSOAP2 ?如果是,请发布一些示例。如果不是,那么是否有任何其他 KSOAP2 替代品用于.Google APIs

4

1 回答 1

1

Google Places API 的推荐格式是 JSON。顺便说一句, KSOAP2不是一个好的库。
要解析 json,您可以使用 Android 中包含的 json.org 库或更复杂的东西,例如 Jackson。

有一个很长的教程如何使用 Places 以及使用哪个库:
http ://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/

于 2012-09-24T13:31:10.360 回答