F Firpas Active Member Licensed User Longtime User Dec 18, 2013 #1 Hi everybody. My problema is to know the device friendly name. When you connect via bluetooth, with serial lib, the metod Serial.getPaired returns a map whith devices names as keys. Well, how can i get this device name in my phone, of course by code. I Know i can see this name in Setting - About the device. Thanks ind advance for your cooperation
Hi everybody. My problema is to know the device friendly name. When you connect via bluetooth, with serial lib, the metod Serial.getPaired returns a map whith devices names as keys. Well, how can i get this device name in my phone, of course by code. I Know i can see this name in Setting - About the device. Thanks ind advance for your cooperation
mangojack Expert Licensed User Longtime User Dec 18, 2013 #2 Have you read these ... Search results for Get Devices Bluetooth Name Cheers mj Upvote 0
F Firpas Active Member Licensed User Longtime User Dec 29, 2013 #3 I think I have not explained well, I need to know is the name of the device where my application is running, and not the surrounding devices. Upvote 0
I think I have not explained well, I need to know is the name of the device where my application is running, and not the surrounding devices.
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2013 #4 Do you want to get the Bluetooth adapter name? Upvote 0
F Firpas Active Member Licensed User Longtime User Dec 31, 2013 #5 Please see the attached image Attachments ScreenShot.png 82.8 KB · Views: 560 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 31, 2013 #6 Devices do not have a "name" field. The Phone library allows you to fetch several fields such as Model and Product. Upvote 0
Devices do not have a "name" field. The Phone library allows you to fetch several fields such as Model and Product.
F Firpas Active Member Licensed User Longtime User Dec 31, 2013 #7 Yes, I know the library, but in my Samsung Galaxy S4 (Android 4.3) in Settings - More - About device, you can enter a device name as shown in the picture above. I have also observed that this field is not available on Android 2.x devices you Is it possible that this field is only available in certain versions of Android such as 4.3 and 4.2? Upvote 0
Yes, I know the library, but in my Samsung Galaxy S4 (Android 4.3) in Settings - More - About device, you can enter a device name as shown in the picture above. I have also observed that this field is not available on Android 2.x devices you Is it possible that this field is only available in certain versions of Android such as 4.3 and 4.2?
mc73 Well-Known Member Licensed User Longtime User Dec 31, 2013 #8 As far as I know, device name which appears in latest versions of the os, is not the same with the bluetooth device name ( and/or the wifi-direct one). If you want to get the bluetooth friendly name, if this is not supported by the serial lib, you could do it by using the reflection lib. Upvote 0
As far as I know, device name which appears in latest versions of the os, is not the same with the bluetooth device name ( and/or the wifi-direct one). If you want to get the bluetooth friendly name, if this is not supported by the serial lib, you could do it by using the reflection lib.
NJDude Expert Licensed User Longtime User Dec 31, 2013 #9 Changing the device name or any other non-standard features are added by the manufacturer, Samsung does it, HTC does it, etc, so, there's no way to use it all the time since it's manufacturer specific. Upvote 0
Changing the device name or any other non-standard features are added by the manufacturer, Samsung does it, HTC does it, etc, so, there's no way to use it all the time since it's manufacturer specific.
F Firpas Active Member Licensed User Longtime User Jan 2, 2014 #10 Ok, thanks for your answers. Can you make an example to get the bluetooth friendly name using reflection lib? Thanks in advance. Upvote 0
Ok, thanks for your answers. Can you make an example to get the bluetooth friendly name using reflection lib? Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2014 #11 You can use this code: Code: Copy Dim adapter As JavaObject adapter.InitializeStatic("android.bluetooth.BluetoothAdapter") adapter = adapter.RunMethod("getDefaultAdapter", Null) Log(adapter.RunMethod("getName", Null)) You will need to add the bluetooth permission: Code: Copy AddPermission(android.permission.BLUETOOTH) Upvote 0
You can use this code: Code: Copy Dim adapter As JavaObject adapter.InitializeStatic("android.bluetooth.BluetoothAdapter") adapter = adapter.RunMethod("getDefaultAdapter", Null) Log(adapter.RunMethod("getName", Null)) You will need to add the bluetooth permission: Code: Copy AddPermission(android.permission.BLUETOOTH)
F Firpas Active Member Licensed User Longtime User Jan 3, 2014 #12 Thank you for your cooperation Upvote 0
G George Anifantakis Member Licensed User Longtime User Feb 7, 2014 #13 Can someone please also tell me how to change the wifi name of the device. The name that it's been showing in the router devices list. Thanks Upvote 0
Can someone please also tell me how to change the wifi name of the device. The name that it's been showing in the router devices list. Thanks
DonManfred Expert Licensed User Longtime User Feb 7, 2014 #14 The Name of the device can be changed in system-settings... In ABOUT PHONE i found Devicename which is editable at this place... That´s the name of the device when i connect it via usb to pc and i think its also the name when using wifi but i´m not sure! Upvote 0
The Name of the device can be changed in system-settings... In ABOUT PHONE i found Devicename which is editable at this place... That´s the name of the device when i connect it via usb to pc and i think its also the name when using wifi but i´m not sure!
G George Anifantakis Member Licensed User Longtime User Feb 7, 2014 #15 Thanks for the reply. My phone (LG) doesn't has this option and the thing is that i would like to change it through code. Upvote 0
Thanks for the reply. My phone (LG) doesn't has this option and the thing is that i would like to change it through code.