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
-
Did you find any solution for this?
I'm also interested in the answer. -
Did you find any solution for this?
I'm also interested in the answer. -
No, I never did get a solution, sorry. Could still use it if you do find anything.
-
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
-
OK, will give that a go when I need it. Thanks.
-
OK, will give that a go when I need it. Thanks.