UsbDevice device = deviceList.get("//the device you want to work with") HashMap deviceList = mUsbManager.getDeviceList() PendingIntent mPermissionIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0) UsbManager mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE) įinal String ACTION_USB_PERMISSION = "_PERMISSION" : //Allows you to enumerate and communicate with connected USB devices. In java the communication takes place using package javax.smarcard which is not available for Android so take a look here for getting an idea as to how you can communicate or send/receive APDU (smartcard command).
0 Comments
Leave a Reply. |