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
- new Handler().postDelayed(new Runnable() {
- publicvoid run() {
- // code where you need to jump
- finish();
- }
- }, 2000 ); //Jump with a delay of 2 seconds