Thanks for your replies,
I read the return of editText by
if(editText.getText().toString().equals("XXXXX"))
I put the editText declaration in second folder so i use it in first folder by
runOnUiThread(new Runnable() {
void run() {
editText(40, 40, 640, 100, WHITE, BLACK, 28);
}
}
);
editText.setVisibility(View.INVISIBLE);
at startup and visible when needed.
It works fine, but seems complicated by comparaison to traditionnal C language.