If app is new runs FirstPassword. Also added SplashActivity.
This commit is contained in:
27
app/src/main/java/com/zadanie1/mw/SplashActivity.java
Normal file
27
app/src/main/java/com/zadanie1/mw/SplashActivity.java
Normal file
@ -0,0 +1,27 @@
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user