Hi all,
I'd like to get the name of the user's device (e.g. "Dave's Note 10"), and it's proving harder than I expected.
There's a method using Bluetooth, but I'd prefer not to have to ask for BT permissions just for the device name.
There appears to be a "device_name" in Android's Settings.Global, which I should be able to retrieve using their getString method, but I don't know enough JavaObject to do it. (In particular, I don't understand the contentResolver parameter.)
Any JavaObject tips or other ways to get the device name? Thanks!
I'd like to get the name of the user's device (e.g. "Dave's Note 10"), and it's proving harder than I expected.
There's a method using Bluetooth, but I'd prefer not to have to ask for BT permissions just for the device name.
There appears to be a "device_name" in Android's Settings.Global, which I should be able to retrieve using their getString method, but I don't know enough JavaObject to do it. (In particular, I don't understand the contentResolver parameter.)
Any JavaObject tips or other ways to get the device name? Thanks!