Created
September 15, 2014 17:06
-
-
Save greengoblinmask/bb85cc1ee3a424d3f15b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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