The application starts the android activity first. At the touch of a button, AndroidLauncher is launched, which loads the class on libgdx. It is necessary that after some time the class on libgdx closes and goes back to android activity, but this is different. How to do it?

    2 answers 2

    Thread PerehodTime = new Thread(){ public void run(){ try{ int PerehodTime = 0; while(PerehodTime < 2000){ sleep(100); PerehodTime = PerehodTime + 100; }; //некоторое время Intent intent = new Intent(MainClass.this, DrugayaActivity.class); //переход startActivityForResult(intent, 0); }catch (InterruptedException e){ e.printStackTrace(); }finally{ finish(); } } }; PerehodTime.start(); } 

      Try to do something like Splash Screen, the lessons in the internet is full.
      Although as for me, you can use Handler with a timer.