KSoap 応答からデータをロードするメイン クラスで List を定義しました。
List<HashMap<String, String>> POIs= new ArrayList<HashMap<String, String>>();
次のコードを使用して、リストにエントリを追加します。
for (int i = 0; i < response1.getPropertyCount(); i++) {
SoapObject response2 = (SoapObject) response1.getProperty(i);
HashMap<String, String> map = new HashMap<String, String>();
map.put("ID",response2.getProperty("CID").toString());
map.put("Distance",response2.getProperty("distance").toString());
map.put("SubLocality",response2.getProperty("SubLocality1").toString());
POIs.add(map);
}
リスト POI をインテントに配置する方法を知りたいですか?