| | |
| | | } |
| | | }; |
| | | |
| | | protected int getLayoutId() { |
| | | return R.layout.activity_splash; |
| | | } |
| | | |
| | | @Override |
| | | protected void onCreate(Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | setContentView(R.layout.activity_splash); |
| | | setContentView(getLayoutId()); |
| | | application = (CommonApplication) getApplication(); |
| | | showPermissionDialog(); |
| | | } |
| | |
| | | dialog.show(); |
| | | |
| | | } |
| | | private void startLogin(){ |
| | | protected void startLogin(){ |
| | | Intent intent = new Intent(SplashActivity.this,LoginActivity.class); |
| | | startActivity(intent); |
| | | Thread thread = new Thread(new Runnable(){ |
| | |
| | | |
| | | } |
| | | }); |
| | | thread.run(); |
| | | thread.start(); |
| | | } |
| | | @Override |
| | | public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { |