用以下方式即可调用java类中的方法
QAndroidJniObject activity = QtAndroid::androidActivity();
QAndroidJniObject DeviceSN=activity.callObjectMethod<jstring>("getDeviceSN");
QAndroidJniObject DeviceMAC=activity.callObjectMethod<jstring>("GetDeviceMAC");
2023-07-17 19:34:10
用以下方式即可调用java类中的方法
QAndroidJniObject activity = QtAndroid::androidActivity();
QAndroidJniObject DeviceSN=activity.callObjectMethod<jstring>("getDeviceSN");
QAndroidJniObject DeviceMAC=activity.callObjectMethod<jstring>("GetDeviceMAC");
下一篇:poj 1011 Sticks