Code example for DataSetObserver

Methods: onChanged

0
	public void setData(Collection<JSONObject> data) {
		this.data.clear();
		this.data.addAll(data);
		unsent = controller.getUnsentCheckins();
		if (null != observer) {
			observer.onChanged();
		} 
	} 
 
	@Override 
	public boolean areAllItemsEnabled() { 
		return true; 
	} 
 
	@Override 
	public JSONObject getChild(int groupPosition, int childPosition) {
		JSONObject checkin = data.get(groupPosition);
		JSONArray refs = checkin.optJSONArray("refs");
		if (childPosition < refs.length()) {
			return refs.optJSONObject(childPosition);
Connect your IDE to all the code out there  Get Codota for Java