I'll try to answer.
In the line 9: Cursor c = getContentResolver().query(pwds, null, null, null, "_id");
In this line the variable pwds
should be pwd
, I think. The first argument the method takes is a Uri.
Or, is pwds
altogether another variable defined elsewhere.
I have the content URI for a content provider and in a toast popup that displays the content from the URI.
I need to change this to a text view,
The value of the result in the Toast
is displayed using the code in line 31: Toast.makeText(this, result, Toast.LENGTH_LONG).show();
To show the result in a TextView
- Define a TextView
in the UI XML / layout file. For example,
- In the Java
TextView resultTextView = (TextView) findViewById(R.id.result_text);
In case you need the output as a list, you need to work with a ListView
also I need to put in some code to AES decrypt (256 bytes) the PASSWORD values. I have the key already.
I found this link which has some example code, AES encrypt/decrypt example: https://howtodoinjava.com/security/java-aes-encryption-example/
SCJP 5, OCPJP 7, 8, SCJD 5, SCWCD 4, SCBCD 5, SCJWS 4, IBM OOAD 833 & 834, MongoDB Developer