Monday, May 28, 2012

[android-developers] Is it possible to set WifiP2pDevice.secondaryDeviceType ?

Hello,

I am developing WiFi Direct application. Currently I am trying to
exchange some custom info between devices within requestPeers() step.
I know that I can call connect(), open socket and send whatever I
want, but this requires user confirmation from the second device. What
I am trying to do is to exchange some information in background!

So:
1. Application calls requestPeers()
2. What the system offers as a result of requestPeers() is a
List<WifiP2pDevice>.
3. For every discovered device we received WifiP2pDevice object that
contains some fields like name, mac etc. This is the only info we have
at this step.

What I am interested in is a possibility to configure that
WifiP2pDevice object somehow for my device. Then other devices would
receive preconfigured WifiP2pDevice object from my device on
requestPeers() and read needed information from it. There is a field
WifiP2pDevice.secondaryDeviceType with the description "Secondary
device type is an optional attribute that can be provided by a device
in addition to the primary device type". Could I configure this field
for the device my application is running on?

Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate