Building Wifi-Direct and Bluetooth services