public byte[] read()
{
byte[] data = new byte[100];
Log.i("FFFF", "READ");
....
}
QAndroidJniObject readData = myActivity.callObjectMethod("read", "(V)[B");
if (!readData.isValid()) return;
jbyteArray buf =readData.object<jbyteArray>();