I'm displaying an AlertDialog as follows:
private void showAlertDialog(String message){
new AlertDialog.Builder(MainActivity.this)
.setMessage(message)
.setPositiveButton(android.R.string.ok, null)
.show();
}
I would like to run automation tests which relay on android:contentDescription to read values.
Is it possible to add/get this parameter from Positive and Negative Button of built-in Alert Dialog?