I am trying to get the user defined device name that is set in settings. I've tried several options and so far nothing.
If it helps or hurts I am needing it in a BroadcastReceiver
Thanks
Open the Settings app to check your device information: Tap About phone. Take note of your device name.
In Android one can easily fetch the information programmatically using Build class. Build class in android provides the basic information like serial number, android SDK, brand, model no, manufacture, version code and etc.
This got me what I was needed... http://cmanios.wordpress.com/2012/05/09/bluetooth-adapter-device-name-and-mac-address-in-android/
BluetoothAdapter myDevice = BluetoothAdapter.getDefaultAdapter(); String deviceName = myDevice.getName();
Make sure you add
<uses-permission android:name="android.permission.BLUETOOTH"/>
to your manifest
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