Test for Activity to display Deslayed

Posted gentspy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Test for Activity to display Deslayed相关的知识,希望对你有一定的参考价值。

用线程 public class Test extends Activity {
private final int SPLASH_DISPLAY_LENGHT = 10000; // 延迟10秒

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
new Handler().postDelayed(new Runnable() {

@Override
public void run() {
Intent intent = new Intent(Test.this,
Your.class);
startActivity(intent);
Test.this.finish();
finish();
}

}, SPLASH_DISPLAY_LENGHT);
}

以上是关于Test for Activity to display Deslayed的主要内容,如果未能解决你的问题,请参考以下文章

You need to use a Theme.AppCompat theme (or descendant) with this activity解决方法

java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.test.Test

连接mongodb Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'test'

test for open live to publish on cnblogs

For loop in MATLAB,R,C programming language.

For loop in MATLAB,R,C programming language.