I am new to android programming. 
I am using Handler to change images but it should happen only for 30 sec and after that i want to call another activity

My code:

```
imageView = (ImageView) findViewById(R.id.imageView);

final int[] imageArray = {R.drawable.a, R.drawable.b, R.drawable.c, R.drawable.d};

    final Handler handler = new Handler();
    Runnable runnable = new Runnable() {
        int i = 0;
        @Override
        public void run() {
            imageView.setImageResource(imageArray[i]);
            i++;
            if(i>imageArray.length-1){
                i= 0;
            }
            handler.postDelayed(this,100);
        }
    };
   handler.postDelayed(runnable, 3000);

```

How do I stop this activity and call another activity after 30 sec?
Please help