欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

android游戲載入的activity跳轉(zhuǎn)到游戲主菜單的activity具體實(shí)現(xiàn)

 更新時(shí)間:2013年06月02日 16:25:45   作者:  
停止2s后由游戲載入頁面再跳轉(zhuǎn)到游戲菜單頁面,具體實(shí)現(xiàn)代碼如下,感興趣的朋友可以參考下哈
復(fù)制代碼 代碼如下:

public class LoadActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);// 去掉標(biāo)題欄
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.load);
change();
}
protected void change()
{
final Intent it = new Intent(this, MainActivity.class);
Timer timer = new Timer();
TimerTask task = new TimerTask()
{
@Override
public void run()
{
// Intent intent = new Intent(LoadActivity.this,
// MainActivity.class);
// // LoadActivity.this.finish(); i = false; } };
startActivity(it);
}
};
timer.schedule(task, 2000);//停止2s后由游戲載入頁面再跳轉(zhuǎn)到游戲菜單頁面
}
}

相關(guān)文章

最新評(píng)論