28 lines
687 B
Java
28 lines
687 B
Java
package com.zadanie1.mw;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.os.Handler;
|
|
|
|
public class SplashActivity extends Activity {
|
|
|
|
Handler handler;
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.splashfile);
|
|
|
|
handler=new Handler();
|
|
handler.postDelayed(new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
Intent intent=new Intent(SplashActivity.this,MainActivity.class);
|
|
startActivity(intent);
|
|
finish();
|
|
}
|
|
},3000);
|
|
|
|
}
|
|
}
|