You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the output argument(btarray) is not written
Same with :
[.....]
usbConnection=cast('android.hardware.usb.UsbDeviceConnection', UsbManager.openDevice(dev))
response= [0]*4usbConnection.bulkTransfer(epIN, response, 4, 1000); # Try to read from USB (Host Mode API)printresponse
If I use a bytearray (btarray=bytearray()), I get this error :
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/sdcard/testAn.py", line 13, in <module>
string.getBytes(0,4,btarray,0)
File "jnius_export_class.pxi", line 813, in jnius.jnius.JavaMultipleMethod.__call__ (jnius/jnius.c:17292)
JavaException: No methods matching your arguments
And if I use a list (btarray=list()), I get this :
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/sdcard/testAn.py", line 13, in <module>
string.getBytes(0,4,btarray,0)
File "jnius_export_class.pxi", line 819, in jnius.jnius.JavaMultipleMethod.__call__ (jnius/jnius.c:17414)
File "jnius_export_class.pxi", line 577, in jnius.jnius.JavaMethod.__call__ (jnius/jnius.c:15021)
File "jnius_export_class.pxi", line 658, in jnius.jnius.JavaMethod.call_method (jnius/jnius.c:15691)
File "jnius_utils.pxi", line 39, in jnius.jnius.check_exception (jnius/jnius.c:2200)
JavaException: JVM exception occured
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hi,
There are some problems with ouput arguments. If I write, for example :
It output :
So the output argument(btarray) is not written
Same with :
If I use a bytearray (btarray=bytearray()), I get this error :
And if I use a list (btarray=list()), I get this :
Thanks a lot.
The text was updated successfully, but these errors were encountered: