Automatic start of a new activity in android

后端 未结 2 620
感情败类
感情败类 2021-02-09 14:46

I am creating an android application. I have a logo screen(Activity) and then my home screen(another activity). I want that when I start my application

2条回答
  •  [愿得一人]
    2021-02-09 14:54

    You can use TimerTask.On TimerTask schedule a task after 2 minutes.And perform the task below

    To use Timer Task see the link TimerTask

    LogoScreen.this.startActivity(new Intent(LogoScreen.this,HomeScreen.class));

提交回复
热议问题