46 lines
1.1 KiB
Java
46 lines
1.1 KiB
Java
package advent.core;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.animation.Animation;
|
|
import android.view.animation.AnimationUtils;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import neko.App;
|
|
|
|
import advent.core.R;
|
|
|
|
public class SplashActivity extends Activity {
|
|
|
|
private static boolean firstLaunch = true;
|
|
|
|
@Override
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
|
|
if (firstLaunch) {
|
|
firstLaunch = false;
|
|
setupSplash();
|
|
App.loadAsynchronously("advent.core.MainActivity",
|
|
new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
proceed();
|
|
}});
|
|
} else {
|
|
proceed();
|
|
}
|
|
}
|
|
|
|
public void setupSplash() {
|
|
setContentView(R.layout.splashscreen);
|
|
}
|
|
|
|
public void proceed() {
|
|
startActivity(new Intent("advent.core.MAIN"));
|
|
finish();
|
|
}
|
|
|
|
}
|