Other similar questions in SO are answered by retrieving the Build.MODEL name.
But what I would really like is to get the customizable Device name on Samsung Devices. I know it is customizable because on my Galaxy Note, I can change it from the settings->About device. For example, below, I would like to retrieve the "Milky Way" string.
Open the Settings app to check your device information: Tap About phone. Take note of your device name.
For Android 7 : go to "Settings" > "About" > "Hardware information".
IosDeviceInfo iosDeviceInfo = await deviceInfo. iosInfo; print('device name ${iosDeviceInfo.name}');
There is no common way getting this, since it's not a "android-feature" more likely a Samsung Feature afaik.
Try getting it with this, which worked on my galaxy s3, s4 and s5
BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter();
String deviceName = myDevice.getName();
Do not forget to add the bluetooth permissions.
<uses-permission android:name="android.permission.BLUETOOTH"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With