首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

起动页面设置

2012-07-01 
启动页面设置final int _splashTime 10Thread splashTread new Thread() {@Overridepublic void run(

启动页面设置

final int _splashTime = 10;Thread splashTread = new Thread() {  @Overridepublic void run() {try {int waited = 0;while (waited < _splashTime) {sleep(1700);waited += 100;}} catch (InterruptedException e) {} finally {// 启动主应用Intent intent = new Intent();intent.setClass(StartScoreActivity.this,MainActivity.class);startActivity(intent);finish();}}};splashTread.start();

?

热点排行