Checked items in Multiple Choice Dialog
<p>I'm displaying a List of Objects in a MultipleChoiceDialog. Another List contains all Objects who are already checked.</p>

<p>My Lists:</p>

<pre><code>List&lt;Participant&gt; participants = datasourceParticipant.getAllParticipants();
List&lt;Participant&gt; participantsConference = datasourceParticipant.getAllParticipants(conference.getId());
</code></pre>

<p>In order to display them in the MultipleChoiceDialog, I build my List like this:</p>

<pre><code>participantsNames = new ArrayList&lt;String&gt;();

for(int i = 0; i &lt; this.participants.size(); i++) {
                participantsNames.add(i, participants.get(i).getFirstname() + " " + participants.get(i).getLastname());
}

participantConferenceNames = new ArrayList&lt;String&gt;();

for(int i = 0; i &lt; this.participantsConference.size(); i++) {
            participantConferenceNames.add(i, participantsConference.get(i).getFirstname() + " " + participantsConference.get(i).getLastname());
}
</code></pre>

<p>Afterwards, I create the necessary String array ...</p>

<pre><code>final CharSequence[] items = participantsNames.toArray(new CharSequence[participantsNames.size()]);
</code></pre>

<p>to display it in the MultipleChoiceDialog</p>

<pre><code>builder.setMultiChoiceItems(items, null, null);
</code></pre>

<p>How do I add the checkedItems to the MultipleChoiceDialog. Or is there a much easier way to do it?</p>
