oh how I love Java
Dirk Hohndel
dirk at hohndel.org
Thu Jun 29 17:58:09 PDT 2017
So how the heck do I get an int return value out of a JNI call???
I've tried quite a few different variations of this
// returns a BluetoothDevice
QAndroidJniObject dev=iterator.callObjectMethod("next","()Ljava/lang/Object;");
if (checkException("Iterator<BluetoothDevice>.next()", &dev)) {
continue;
}
QAndroidJniObject typeObj = dev.callObjectMethod("getType", "()I");
getType() returns an int. I want to check if this is an LE-only device.
Help?
/D
More information about the subsurface
mailing list