Android Activity delay jump

Sometimes we find that the boot pages of some APPs are transferred to the main page after a while. In fact, they are processing data operations at this time. Today, we will simulate the function of Android Activity delay jump! In fact, it is very simple, just add a piece of code: as follows

https://blog.csdn.net/xiaoyuan511/article/details/38727835

[java]  view plain copy  
  1. new Handler().postDelayed(new Runnable() {    
  2.             publicvoid run() {    
  3.                 // code where you need to jump  
  4.                 finish();  
  5.             }    
  6.         },  2000 );  //Jump with a delay of 2 seconds  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325810945&siteId=291194637