[Interest] Get Android (or OS) version via Qt API?
Attila Csipa
qt at csipa.in.rs
Sun Feb 16 22:57:04 CET 2014
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.com at qt-project.org
> [interest-bounces+alexander.blasche=digia.com at qt-project.org] on
> behalf of Attila Csipa [qt at csipa.in.rs]
> *Sent:* Thursday, February 13, 2014 23:47
> *To:* interest at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140216/320f1f76/attachment.html>
More information about the Interest
mailing list