Android Question INTENT startActivityForResult

kkkpe

Active Member
Licensed User
Longtime User
I need to translate this code in B4A, attention that I have a startActivityForResult, and a setComponent with two parameters, which I in B4A have not found the correspondence.

B4X:
Intent intent = new Intent(Intent.ACTION_MAIN);
 intent.setComponent(new
ComponentName("it.paytec.payddcmp","it.paytec.payddcmp.MainActivity"));
 intent.putExtra("BT6000_DEVICE_NAME", "BT6000-17120096");
 intent.putExtra("MAX_BAUD", 115200);
 intent.putExtra("PASSWORD", 12345);
 intent.putExtra("DUMP", true);
 intent.putExtra("MODE", 0);
 intent.putExtra("TITLE_MSG","Prelievo Audit");
 intent.putExtra("OPEN_BT_MSG","Apertura comunicazione BT6000");
 intent.putExtra("INIT_LINK_MSG","Connessione con il sistema");
 intent.putExtra("READING_DATA_MSG","Lettura dati in corso");
 intent.putExtra("SHOW_PROGRESS_DIALOG",true);
 startActivityForResult(intent,1000);
 
Top