Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This method will create the activity, read content to display, and show the main activity screen
- * Used when the activity is (re)created.
- *
- * @param savedInstanceState current saved instance state
- */
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
- View decorView = getWindow().getDecorView();
- decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
- setContentView(R.layout.activity_home);
- etUsername = findViewById(R.id.etUsername);
- etPassword = findViewById(R.id.etPassword);
- TextView tvWarning = findViewById(R.id.tvWarning);
- Button btnLogon = findViewById(R.id.btnLogon);
- btnLogon.setOnClickListener(this);
- @SuppressLint ("Recycle") Cursor cursor = getContentResolver().query(Uri.parse("content://com.phoenixhospman.install.ProviderSettings/settings"), null, null, null, null, null);
- assert cursor != null;
- if(cursor.moveToFirst()) {
- while(!cursor.isAfterLast()) {
- strCoName = cursor.getString(cursor.getColumnIndex("coname"));
- strApiUrl = cursor.getString(cursor.getColumnIndex("apiurl"));
- cursor.moveToNext();
- }
- } else {
- Error("\nRequired setting missing.\nPlease (re)run Phoenix Install App");
- }
- managerLauncherApi = new ManagerLauncherApi(strApiUrl);
- tvWarning.setText(getString(R.string.warning, rtrim(strCoName) ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement