//实现等待几秒后跳转,方法一new Handler().postDelayed(new Runnable() {@Overridepublic void run() {Intent intent = new Intent(MainActivity.this,ExampleActivity.class);startActivity(intent);}}, SPLASH_DISPLAY_LENGHT); //实现等待几秒后跳转,方法二 final Intent localIntent = new Intent(this, ExampleActivity.class); Timer timer = new Timer(); TimerTask tast = new TimerTask() { @Override public void run() { startActivity(localIntent); } }; timer.schedule(tast, SPLASH_DISPLAY_LENGHT);

更多相关文章

  1. 一个hello程序的android内核模块编译方法及在模拟器中进行测试结
  2. Android实现计时与倒计时(限时抢购)的几种方法(线程)
  3. Android 获取网络图片方法
  4. android 游戏 Canvas 常用方法
  5. Android中为Button注册监听器最常用的两种方法
  6. Android 保留两位小数点的4种方法

随机推荐

  1. SQL Server 数据库分离与附加 就这么简单
  2. 详解DB2 sqlstate 57016 SQLCODE=-668 原
  3. SQL Server实现split函数分割字符串功能
  4. SQL Server实现将特定字符串拆分并进行插
  5. MSSql简单查询出数据表中所有重复数据的
  6. Mysql中错误使用SQL语句Groupby被兼容的
  7. MSSQL分页存储过程完整示例(支持多表分页
  8. SQL Server 2012 FileTable 新特性详解
  9. SQL查询服务器硬盘剩余空间
  10. 高并发系统数据幂等的解决方案