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
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface