[Solved] Start Activity after a period of time [duplicate]


I want to start a new activity after a period of time on button click

    en.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            //...
            new Handler().postDelayed(new Runnable() {
                @Override
                public void run() {
                    startActivity(new Intent(LanguageActivity.this, ServicesActivity.class));
                }
            }, 5 * 1000); // 5 seconds
        }
    });

solved Start Activity after a period of time [duplicate]