Delete SplashScreen.java
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
package shanmukha.in.sickle_cell;
|
|
||||||
|
|
||||||
import android.content.Intent;
|
|
||||||
import android.content.SharedPreferences;
|
|
||||||
import android.os.Bundle;
|
|
||||||
import android.os.Handler;
|
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
|
||||||
|
|
||||||
|
|
||||||
public class SplashScreen extends AppCompatActivity {
|
|
||||||
|
|
||||||
private static int SPLASH_TIME_OUT=3000;
|
|
||||||
String number;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
setContentView(R.layout.activity_splash_screen);
|
|
||||||
SharedPreferences preferences6 = getSharedPreferences("PhoneBook_number", MODE_PRIVATE);
|
|
||||||
|
|
||||||
number = preferences6.getString("Phone", null);
|
|
||||||
|
|
||||||
new Handler().postDelayed(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Intent home = new Intent(SplashScreen.this, Serial_Com.class);
|
|
||||||
startActivity(home);
|
|
||||||
finish();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}, SPLASH_TIME_OUT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user