Getting android device name
-
wrote on 29 Jan 2014, 06:24 last edited by
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
-
wrote on 11 Dec 2014, 04:45 last edited by
Did you find any solution for this?
I'm also interested in the answer. -
wrote on 11 Dec 2014, 04:45 last edited by
Did you find any solution for this?
I'm also interested in the answer. -
wrote on 12 Dec 2014, 06:13 last edited by
No, I never did get a solution, sorry. Could still use it if you do find anything.
-
wrote on 12 Dec 2014, 06:13 last edited by
No, I never did get a solution, sorry. Could still use it if you do find anything.
-
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
-
wrote on 15 Dec 2014, 12:47 last edited by
OK, will give that a go when I need it. Thanks.
-
wrote on 15 Dec 2014, 12:47 last edited by
OK, will give that a go when I need it. Thanks.