Back to project page osu-taste-portable.
The source code is released under:
Apache License
If you think the Android project osu-taste-portable listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dgsrz.osuTaste.activities; /*from w w w . ja v a 2 s . c o m*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import com.dgsrz.osuTaste.R; import com.dgsrz.osuTaste.utils.ApplicationUtils; /** * @author dgsrz (dgsrz@vip.qq.com) */ public class SplashActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); View view = View.inflate(this, R.layout.start_screen, null); setContentView(view); AlphaAnimation aa = new AlphaAnimation(0.3f, 1.0f); aa.setDuration(1000); view.startAnimation(aa); aa.setAnimationListener(new Animation.AnimationListener() { @Override public void onAnimationEnd(Animation arg0) { ApplicationUtils.syncBeatmaps(getApplicationContext()); Intent intent = new Intent(SplashActivity.this, HomeActivity.class); startActivity(intent); SplashActivity.this.finish(); } @Override public void onAnimationRepeat(Animation animation) { } @Override public void onAnimationStart(Animation animation) { } }); } }