Code example for SimpleAdapter

Methods: notifyDataSetChanged

0
			server.put(SERVER_IP, addresses[0].toString());
			server.put(SERVER_PORT, Integer.toString(info.getPort()));
			servers.add(server);
			runOnUiThread(new Runnable() {
			    public void run() { 
			    	listAdapter.notifyDataSetChanged();
			    } 
			}); 
			 
		} 
	} 
 
	@Override 
	public void serviceRemoved(ServiceEvent event) {
		Iterator<Map<String, String>> i = servers.iterator();
		while (i.hasNext()) {
			if (i.next().get(SERVER_NAME).equals(event.getName())) {
				i.remove();
			} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE