I got a problems when i using Spark,When few contacts in ever group it ok, But When alots of ppl in any group as contacts more than 300, The spark will can not show any Group.
int currentindex=1;
sb.append(LOAD_ROSTER_ITEM_GROUPS).append(" WHERE rosterID IN (");
for (RosterItem item : itemList) {
sb.append(item.getID()).append(",");
if(currentindex%900==0)
{
sb.setLength(sb.length()-1);
sb.append(") or rosterID IN (");
}
currentindex++;
}