Hi,

That's pretty fresh :) I guess until 5.3 is out (ie with 5.2 deployments), it's going to be

#define SDK_INT QAndroidJniObject::getStaticField<jint>("android/os/Build$VERSION", "SDK_INT")

...especially since that way you can get (any) extra fields not present in the current public api...

Best regards,
Attila

On 14/02/14 10:12, Blasche Alexander wrote:
Hi,

The SDK version is available via:

QtAndroid::androidSdkVersion()

see qtandroidextras/src/androidextras/android/qandroidfunctions.h

There might be a tiny bit more information hidden in private headers but they come along with the usual "use at your own risk we may change it" statement.


--

Alex

------------------------------------------------------------------------
*From:* interest-bounces+alexander.blasche=digia....@qt-project.org [interest-bounces+alexander.blasche=digia....@qt-project.org] on behalf of Attila Csipa [q...@csipa.in.rs]
*Sent:* Thursday, February 13, 2014 23:47
*To:* interest@qt-project.org
*Subject:* [Interest] Get Android (or OS) version via Qt API?

Hi,

Is there a way to get to Android versions/details (android.os.Build.*) via Qt APIs (like QSystemDeviceInfo in the old days), or does one have to go through native interfaces a la QAndroidJniObject?

Best regards,
Attila Csipa


_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to