Skip to content

Instantly share code, notes, and snippets.

@greengoblinmask
Created September 15, 2014 17:06
Show Gist options
  • Save greengoblinmask/bb85cc1ee3a424d3f15b to your computer and use it in GitHub Desktop.
Save greengoblinmask/bb85cc1ee3a424d3f15b to your computer and use it in GitHub Desktop.
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
* Created by GreenGoblin on 9/15/2014.
*/
public class SplassActivity extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash_screen);
Thread logoTimer = new Thread() {
public void run(){
try{
int logoTimer = 0;
while(logoTimer < 5000){
sleep(100);
logoTimer = logoTimer +100;
};
startActivity(new Intent("com.tutorial.CLEARSCREEN"));
}
catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally{
finish();
}
}
};
logoTimer.start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment