2
我不知道,什么是阻止这个工作。我有代码设置导致3秒延迟,但视图不工作,它保持黑色,然后3秒后切换到下一个屏幕。我想,我做的时间延迟,一些没有被调用内Android的显示布局...Android之间的时间延迟
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
start = System.currentTimeMillis();
setContentView(R.layout.team);
}
protected void onStart()
{
super.onStart();
while(game)
{
now = System.currentTimeMillis();
if (now - start >= 5000)
{
game = false;
Intent about = new Intent(this, SplashScreen.class);
startActivity(about);
}
}
}
完美没有意识到这必须在一个线程内完成 – Chris
我很高兴我帮助:) – Shah