通过wifi的p2p显示图像和用户名时发现等列表 [英] Peer List when discovered through wifi p2p displays image and user name

查看:125
本文介绍了通过wifi的p2p显示图像和用户名时发现等列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用无线网络的P2P的onPeersAvailable()方法发现的对等列表,它显示的设备名称和地址,我们可以在除了名字显示图像和地址?

When peer list is discovered using wifi p2p's onPeersAvailable() method, it displays the device name and address, can we display an image in addition to the name and address?

推荐答案

,你可以从<一见href=\"http://developer.android.com/reference/android/net/wifi/p2p/WifiP2pManager.PeerListListener.html\"相对=nofollow>文档,你没有得到通过对端发现这样的信息。

as you can see from the documentation, you don't get such information through the peer discovery.

所以,如果你需要通过发现方法传递更多的信息,你就那么需要通过服务发现进行发放。虽然对图像有做它没有默认的方式,但确确实实你可以定义自己的逻辑,这样做的。

So if you need additional information delivered through the discovery method, you would then need to distribute them through the service discovery. Though for images there is no default ways on doing it, but indeed you could define your own custom logic for doing so.

这篇关于通过wifi的p2p显示图像和用户名时发现等列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆