安卓Android,我做了一个APP的开启界面,像QQ那种,先显示一个全屏的logo,过几秒再进入主界面,可是像图片上那样写延时logo是可以显示出来的,如果直接调用Thread.sleep或者SystemClock.sleep延时之后再进入,logo就不能显示出来,为什么啊
Timer timer = new Timer();
TimerTask timertask = new TimerTask(){
@Override
public void run() {
// TODO Auto-generated method stub
Intent intent = new Intent(MainActivity.this,???.class);
startActivity(intent);
MainActivity.this.finish();
}};
timer.schedule(timertask, 1000);
//è¿ä¸ªæ¯æèªå·±åä¸ä¸ªå®åç¨åºç¨çä¸æ®µä»£ç ï¼å æ¾ç¤ºä¸ä¸ªçé¢ï¼1000msåèªå¨è·³è½¬è¿½é®
TimerTask timertask = new TimerTask(){
@Override
public void run() {
// TODO Auto-generated method stub
Intent intent = new Intent(MainActivity.this,???.class);
startActivity(intent);
MainActivity.this.finish();
}};
timer.schedule(timertask, 1000);
//è¿ä¸ªæ¯æèªå·±åä¸ä¸ªå®åç¨åºç¨çä¸æ®µä»£ç ï¼å æ¾ç¤ºä¸ä¸ªçé¢ï¼1000msåèªå¨è·³è½¬è¿½é®
ç好é®é¢å¨åçè¡å亲ï¼
温馨提示:答案为网友推荐,仅供参考