Getting android device name
-
I currently use this to get the local machine name:
@QHostInfo::localHostName();@
Works fine on a desktop computer but on an Android device it just returns "localhost"
I am after the Device name listed under "About device" in Settings. Which on mine is set as SamsungTab3.
Ideally would like a solution that will work for both Android and iOS.
Thanks, Carl
-
Hi,
You would need to use "this":http://developer.android.com/reference/android/os/Build.html through QtAndroidExtras JNI classes
Hope it helps
-
Hi,
You would need to use "this":http://developer.android.com/reference/android/os/Build.html through QtAndroidExtras JNI classes
Hope it helps