Ciao, ho scaricato una libreria che ho finito di modificare secondo le mie esigenze....
Ora sono bloccato nel confrontare 2 Array, faccio un esempio:
Ammettiamo che eventRect abbia 2 records, cioè il dato eventRect.event.getIdOperatore() ==1 e il secondo record èeventRect.event.getIdOperatore() ==3.

Ora l'array id_nome_opè praticamente identico, quindi contiene un record con il valore 1 e un record con il valore3.

Con il ciclo for, quando sono uguali voglio fare qualcosa, però con il ciclo for impostato così non ottengo il risultato sperato. Spero di essere stato chiaro:

codice:

codice:
ArrayList<EventRect> tempEvents = new ArrayList<EventRect>(mEventRects);
        mEventRects = new ArrayList<EventRect>();

for(int j =1; j<=id_nome_op.length;){
            ArrayList<EventRect> eventRects = new ArrayList<EventRect>();
            for (EventRect eventRect : tempEvents) {
                String compare = String.valueOf(j);
                if (isStessoOperatore(eventRect.event.getIdOperatore(),compare))
                    eventRects.add(eventRect);

     Log.d("compare", "compare "+compare+" idOperatore "+eventRect.event.getIdOperatore());

            }
            computePositionOfEvents(eventRects);
            j++;