I'd like to know how I can change the device details of WiFi Direct interface of an Android device (for example the name of interface).
I'm developing an application that uses Bluetooth or WiFi Direct technology for wireless communications and it connects only to devices named with a particular prefix to discriminate those devices that are running my app, respect to those that have only the interface on (I know that it is a naive solution... :)).
Bluetooth permits to manipulate the name of the interface by using setName(String name)
and getName()
methods provided by BluetoothAdapter
class, but I believe that don't exist the corresponding ones for WiFi Direct.
If it's not possible, how can I discriminate those WiFi Direct devices that are running my app, respect to those that have only the interface on?
Any help is appreciated.
Thank you.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
The Wi-Fi direct Name is the device name, you can change it by the following way: