Auto change focus between two buttons periodically2
<pre><code>private Runnable mUpdateTimeTask= new Runnable()

    {
        public void run()
        {
            //final long start= System.currentTimeMillis();
            mhandler.removeCallbacks(this);

            switch(var)
            {

            case 0: mybtn0.clearFocus();

                    mybtn1.requestFocus();

                    break;

            case 1: mybtn1.clearFocus();

                    mybtn0.requestFocus();

                    break;

            default: break;

            }

            var= (var+1)%2;

            mhandler.postDelayed(this, 5000);


        }
    };
</code></pre>

<p>My objective is that the focus must change between two buttons mybtn0 and mybtn1 periodically.this is the code i have used for auto focus change between buttons using handler class, still no use.  it is not giving any results and no errors as well. so please help me to sort out this problem.</p>
