Display Images with Timer doesn't work
<p>Hello I need to display 12 imagen for 5 second when I clicked in the Menu Inflater, in the option "Start".</p>

<p>I create a method for show the Images:</p>

<pre><code>private void mostrarImgs() {

    if ( ultT &lt; prtT ) {   
        if (mostrar) { 
            ((ImageView)findViewById(imgIds[ultIndice])).setVisibility(View.INVISIBLE);
        }else{
            ((ImageView)findViewById(imgIds[prmIndice])).setVisibility(View.INVISIBLE);  
        }
    }
    mostrar = !mostrar;   
    }
</code></pre>

<p>And in the 'Inflater:</p>

<pre><code> public boolean onOptionsItemSelected(MenuItem item) {

    super.onOptionsItemSelected(item);

    switch (item.getItemId()){

    case R.id.texto1:
 Timer cambioImg = new Timer();
        cambioImg.schedule(new TimerTask() {
            @Override
            public void run() {
                runOnUiThread(new Runnable() {
                    public void run() {
                        mostrarImgs();
                    }
                });
            }
        }, 0, 180 * 1000);
        return true;
</code></pre>

<p>I have the problem that It doesn't work. Any help?</p>
