String s = getIntent().getStringExtra("pin"); try { DatabaseUtilities databaseutilities = new DatabaseUtilities(getApplicationContext()); textview.setText((new CryptoUtilities("v1", s)).decrypt(databaseutilities.fetchSecret())); } catch (Exception exception) { Log.e("Pinlock", "exception", exception); } Toast.makeText(bundle, s, 1);