package org.fireking;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class WelcomePanleActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
welcome() ;
}

protected void welcome() {
new Thread(){
@Override
public void run() {
try {
Thread.sleep(2500) ;
} catch (InterruptedException e) {
e.printStackTrace();
}
Intent intent = new Intent() ;
intent.setClass(WelcomePanleActivity.this, MainActivity.class) ;
WelcomePanleActivity.this.startActivity(intent) ;
}
}.start();
}

}

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="欢迎界面"
android:layout_gravity="center_horizontal"
/>

</LinearLayout>


更多相关文章

  1. Android(安卓)监听Fragment界面的点击事件
  2. Andoid - 开发实例(2): ViewPager卡片式界面2
  3. android用户界面之AlarmManager教程实例汇
  4. android界面xml文件中导入另一个xml文件的方法include
  5. android用户界面之TabHost教程实例汇总
  6. android用户界面之AlarmManager教程实例汇
  7. android 学习五 设置应用程序全屏(没有状态栏和标题栏)
  8. Android(安卓)Activity界面切换添加动画特效
  9. 一起学android之底部菜单TabHost的实现(9)

随机推荐

  1. 【Android(安卓)应用开发】GitHub 优秀的
  2. Android(安卓)APP增量升级及插件化实现方
  3. Android系统工具之Roblectric 使用过程中
  4. Android按返回键退出程序但不销毁
  5. Android运行报错:Error: Static interface
  6. 关于资源文件:颜色
  7. android中的广播接收器
  8. 解决Error:Android(安卓)Dex: com.androi
  9. android的软键盘的enter键的替换
  10. std::to_string is not memember of std