Invalidate method to update interface
<p>I have the following code in the OnCreate to show a ListView with data:</p>

<pre><code>obtenerDatosTareas();

        int tamaño;
        tamaño = Integer.parseInt(jsonTareas.getString("tamaño"));

        ArrayList&lt;Tarea&gt; items = new ArrayList&lt;Tarea&gt;();

        int j =0;
        while(j&lt;tamaño){
            items.add(new Tarea(j,claves_tareas.get(j), prioridades_tareas.get(j),descripciones_tareas.get(j)));
            ++j;
        }

        adapter = new ItemTareaAdapter(this,items);
        lstOpciones.setAdapter(adapter);
</code></pre>

<p>In addition, every five seconds I check if a task is assigned to the user so that the ListView that task should be added and displayed on screen:</p>

<pre><code>class MyTask extends TimerTask {
    public void run() {
        if (reunionInactiva()) {
            Log.i("Prueba","Dentro del if de reunionActiva. Reunion finalizada");
        }
        Message msg = new Message();
        puente.sendMessage(msg);
        Log.i("Prueba","Dentro de MyTas");
    }
} 


private Handler puente = new Handler() {
    public void handleMssage (Message msg) {
        lstOpciones.invalidate();
    }
};

    MyTask miTarea = new MyTask();
    timer.schedule(miTarea, 0,5000);
</code></pre>

<p>As I read the internet for ListView to refresh and display the new data should call the Invalidate method because if I update the interface in the run() method of MyTask would fail.
But when I run this code does not update the ListView.</p>

<p>What am I doing wrong? Thanks</p>
