QT 5.4 Android device information
-
hi. tell me how to take the information about the type of device (smartphone, tablet ...) in Qt 5.4 android or if that is possible in qml.
-
Hi,
In QML you currently only get the platform you're running on. For further details you can use the JNI interface to get the information out of Android's native classes and set them as Qt Quick context properties to use them in code (in V-Play we have some properties like the "screen diagonal":http://v-play.net/doc/vplay-gamewindowapplicationwindow/#diameterInInches-prop which can be used to differentiate between smartphones and tablets for example).
Best,
Alex