Android app Flash screen code before entering

package com.zhoujn.lostfound;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;

/** Flash page
* @ClassName: SplashActivity
* @Description: TODO
* @author smile
* @date 2014-5-21 afternoon 2:21:28
*/
@SuppressLint(“HandlerLeak”)
public class SplashActivity extends BaseActivity {
@Override public void setContentView() { // TODO Auto-generated method stub
setContentView(R.layout.activity_splash); } @Override public void initViews() {
// TODO Auto-generated method stub } @Override public void initListeners() { //
TODO Auto-generated method stub } @Override public void initData() { // TODO
Auto-generated method stub mHandler.sendEmptyMessageDelayed(GO_HOME, 3000); }
public void goHome() { Intent intent = new Intent(this, MainActivity.class);
startActivity(intent); this.finish(); } private static final int GO_HOME = 100;
private Handler mHandler = new Handler() { @Override public void
handleMessage(Message msg) { switch (msg.what) { case GO_HOME: goHome(); break;
} } };
}

Technology
©2019-2020 Toolsou All rights reserved,
java Four functional interfaces ( a key , simple )os Simple use of module Browser kernel ( understand ) Some East 14 Pay change 16 salary , Sincerity or routine ?HashMap Explain in detail It's unexpected Python Cherry tree (turtle The gorgeous style of Library )html Writing about cherry trees , Writing about cherry trees