How can I send message from HostApduService to an activity? [closed]
I would like to pass a string to an Activity easily. Something like callback would be needed because when the string has to be passed then the Activity has to do something. public class MyHostApduService extends HostApduService { @Override public byte[] processCommandApdu(byte[] apdu, Bundle extras) { if (selectAidApdu(apdu)) { Log.i("HCEDEMO", "Application selected"); return getWelcomeMessage(); } else { if (exchangeDataApdu(apdu)) { Log.i("HCEDEMO", "Data exchanged"); // int _len_ = apdu[4]; String _data_ = new String(apdu).substring(5, apdu.length - 1); // TODO: Send _data_ to an activity..