Device with the higher intent becomes the group owner is said in the following link: http://developer.bada.com/help_2.0/index.jsp?topic=%2Fcom.osp.cppappprogramming.help%2Fhtml%2Fdev_guide%2Fnet%2Fwi-fi_direct_connectivity.htm
I tried the following in the google-demo project of wifi-direct. In the main activity class from where broadcast receiver was called I set the priority as follows while running in one device.
public void onResume() {
super.onResume();
receiver = new WiFiDirectBroadcastReceiver(manager, channel, this);
intentFilter.setPriority(999);
registerReceiver(receiver, intentFilter);
}
While running the code in next device I didn't set the priority.
public void onResume() {
super.onResume();
receiver = new WiFiDirectBroadcastReceiver(manager, channel, this);
registerReceiver(receiver, intentFilter);
}
So as per the link the device with the higher priority should have been the group owner but setting priority does not seem working. Is there a way to explicitly assign a particular device as the group owner while connection establishes between two devices ?