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,
( Essence )2020 year 6 month 26 day C# Class library model PageInput Note 14 : The second biggest obstacle to motivating others in R & D management java Several common runtime exceptions and simple examples 415 Status code to background error ( Essence 2020 year 6 month 2 Daily update ) TypeScript Function explanation Mybatis Mapping file Mapper.xml in # and $ The difference between MySql sentence Recursively find all subordinate departments of an input department PHP Printout logThread.getContextClassLoader And Thread.getClassLoader() difference A guess number of small games , use JavaScript realization